From ed0e1550a9fb9baa8a68e97302cba37106013bdf Mon Sep 17 00:00:00 2001 From: Carolina Aguilar Date: Wed, 24 Jul 2019 08:25:08 -0600 Subject: [PATCH] fix: free memory allocated in reportUserException (#395) --- Source/KSCrash/Source/KSCrash/Recording/BSG_KSCrash.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/KSCrash/Source/KSCrash/Recording/BSG_KSCrash.m b/Source/KSCrash/Source/KSCrash/Recording/BSG_KSCrash.m index c8432d3d2..26f8b4063 100644 --- a/Source/KSCrash/Source/KSCrash/Recording/BSG_KSCrash.m +++ b/Source/KSCrash/Source/KSCrash/Recording/BSG_KSCrash.m @@ -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.