From: Andrew Bartlett Date: Sun, 21 Mar 2004 08:43:41 +0000 (+0000) Subject: Given how often a panic has to do with malloc() problems, don't tempt X-Git-Tag: samba-4.0.0alpha6~801^2~11786 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f58e6a997750c16e0c1ffccabbbf69469eb280c2;p=thirdparty%2Fsamba.git 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) --- diff --git a/source3/lib/util.c b/source3/lib/util.c index 10d224baabf..3f57048a00b 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