Signals: Ensure libdw session is freed
authorBen Gamari <ben@smart-cactus.org>
Sat, 31 Oct 2015 15:39:57 +0000 (16:39 +0100)
committerBen Gamari <ben@smart-cactus.org>
Sat, 31 Oct 2015 19:24:57 +0000 (20:24 +0100)
rts/posix/Signals.c

index 89195e2..247feba 100644 (file)
@@ -540,6 +540,7 @@ backtrace_handler(int sig STG_UNUSED)
     Backtrace *bt = libdw_get_backtrace(session);
     libdw_print_backtrace(session, stderr, bt);
     backtrace_free(bt);
+    libdw_free(session);
 #else
     fprintf(stderr, "This build does not support backtraces.\n");
 #endif