summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 8bc36a4fb4..da98f5a3cf 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -1441,9 +1441,10 @@ void smb_panic(const char *why)
if (backtrace_strings) {
for (i = 0; i < backtrace_size; i++)
DEBUG(0, (" #%u %s\n", i, backtrace_strings[i]));
+
+ SAFE_FREE(backtrace_strings);
}
- free(backtrace_strings);
#endif
dbgflush();