Skip to content

Commit

Permalink
Merge pull request #1 from yyweii/master
Browse files Browse the repository at this point in the history
fix memory leak
  • Loading branch information
WuBingzheng authored Nov 4, 2018
2 parents 0b71878 + 893ce89 commit 97d86b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libleak.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ static void leak_callstack_print(struct leak_callstack *cs)
for (int i = 2; i < cs->ip_num; i++) {
fprintf(leak_log_filp, " %s\n", symbols[i]);
}

free(symbols);
}


Expand Down

0 comments on commit 97d86b7

Please sign in to comment.