Skip to content

Commit

Permalink
fix: correctly free mutex hashtable (memory-leak)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoessbauer committed Jul 10, 2019
1 parent 4453a94 commit 80d4a3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drace-client/src/memory-tracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ namespace drace {
data->stack.deallocate(drcontext);
data->mem_buf.deallocate(drcontext);

hashtable_delete(&(data->mutex_book));

// free statistics
data->stats->~Statistics();
dr_thread_free(drcontext, data->stats, sizeof(Statistics));
Expand Down

0 comments on commit 80d4a3c

Please sign in to comment.