mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2026-02-14 23:19:01 +00:00
Don't log free(NULL) calls.
This commit is contained in:
@@ -959,7 +959,7 @@ void *whine_realloc_real(const char *func, unsigned int line, void *ptr, size_t
|
||||
|
||||
void free_real(const char *func, unsigned int line, void *ptr)
|
||||
{
|
||||
if (option_bool(OPT_LOG_MALLOC))
|
||||
if (ptr && option_bool(OPT_LOG_MALLOC))
|
||||
my_syslog(LOG_INFO, _("free: %s:%u block at %x"), func, line, hash_ptr(ptr));
|
||||
|
||||
#undef free
|
||||
|
||||
Reference in New Issue
Block a user