mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
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)
This commit is contained in:
parent
447af3949e
commit
f58e6a9977
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user