Commit e2a78eec authored by Ben Gamari's avatar Ben Gamari 🐢
Browse files

Signals: Ensure libdw session is freed

parent 6bef55c6
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment