diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-03-21 08:43:41 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2004-03-21 08:43:41 +0000 |
commit | f58e6a997750c16e0c1ffccabbbf69469eb280c2 (patch) | |
tree | 4083022d1d0fd25b6c456d7176e84c639b7a4fd6 /source3/lib | |
parent | 447af3949e54bbc4cd5638b0fa5ca53865bbf347 (diff) | |
download | samba-f58e6a997750c16e0c1ffccabbbf69469eb280c2.tar.gz samba-f58e6a997750c16e0c1ffccabbbf69469eb280c2.tar.bz2 samba-f58e6a997750c16e0c1ffccabbbf69469eb280c2.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
(This used to be commit d0b820562b8a7f8e5d0224926d46590b9f1ca9a3)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index 10d224baab..3f57048a00 100644 --- a/source3/lib/util.c +++ b/source3/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 |