summaryrefslogtreecommitdiff
path: root/rts/posix/Signals.c
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2015-10-31 16:39:57 +0100
committerBen Gamari <ben@smart-cactus.org>2015-10-31 20:24:57 +0100
commite2a78eec37ccabea9c1269fd408a0e692d9c927f (patch)
tree00207e36d41a725baf1662a2ac71f317dbb85f21 /rts/posix/Signals.c
parent6bef55c6b561080c5ddff73f2c501e40acee86ef (diff)
downloadhaskell-e2a78eec37ccabea9c1269fd408a0e692d9c927f.tar.gz
Signals: Ensure libdw session is freed
Diffstat (limited to 'rts/posix/Signals.c')
-rw-r--r--rts/posix/Signals.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rts/posix/Signals.c b/rts/posix/Signals.c
index 89195e2efd..247feba69e 100644
--- a/rts/posix/Signals.c
+++ b/rts/posix/Signals.c
@@ -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