summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-03-21 08:43:41 +0000
committerAndrew Bartlett <abartlet@samba.org>2004-03-21 08:43:41 +0000
commitd0b820562b8a7f8e5d0224926d46590b9f1ca9a3 (patch)
tree86865c1ab2e57dbf7dd733359fa8013ff7352e76 /source
parent2426bb4906e0ca3b53800706da2e9d1e17a73dc7 (diff)
downloadsamba-d0b820562b8a7f8e5d0224926d46590b9f1ca9a3.tar.gz
samba-d0b820562b8a7f8e5d0224926d46590b9f1ca9a3.tar.xz
samba-d0b820562b8a7f8e5d0224926d46590b9f1ca9a3.zip
Given how often a panic has to do with malloc() problems, don't tempt
things more by calling SAFE_FREE() just before we exit our panic handler. Andrew Bartlett
Diffstat (limited to 'source')
-rw-r--r--source/lib/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/util.c b/source/lib/util.c
index 10d224baabf..3f57048a00b 100644
--- a/source/lib/util.c
+++ b/source/lib/util.c
@@ -1411,7 +1411,7 @@ void smb_panic2(const char *why, BOOL decrement_pid_count )
for (i = 0; i < backtrace_size; i++)
DEBUGADD(0, (" #%u %s\n", i, backtrace_strings[i]));
- SAFE_FREE(backtrace_strings);
+ /* Leak the backtrace_strings, rather than risk what free() might do */
}
#elif HAVE_LIBEXC