Skip to content

Commit

Permalink
fix: free memory allocated in reportUserException (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
caroaguilar authored and kattrali committed Jul 24, 2019
1 parent c8e5a5a commit ed0e155
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/KSCrash/Source/KSCrash/Recording/BSG_KSCrash.m
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ - (void)reportUserException:(NSString *)name
depth,
terminateProgram);

free(callstack);

// If bsg_kscrash_reportUserException() returns, we did not terminate.
// Set up IDs and paths for the next crash.

Expand Down

0 comments on commit ed0e155

Please sign in to comment.