Skip to content

Commit

Permalink
i#2157 reattach: Unregister TLS field in drcovlib
Browse files Browse the repository at this point in the history
Fixes a reattach-based crash where this TLS leak caused drmgr to run out
of TLS slots.

Issue #2157
  • Loading branch information
Carrotman42 committed Dec 8, 2017
1 parent f9b6914 commit 814bbdf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/drcovlib/modules.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ drmodtrack_exit(void)
if (count != 0)
return DRCOVLIB_SUCCESS;

drmgr_register_tls_field(tls_idx);
drvector_delete(&module_table.vector);
drmgr_exit();
return DRCOVLIB_SUCCESS;
Expand Down

0 comments on commit 814bbdf

Please sign in to comment.