diff options
Diffstat (limited to 'src/common/log.c')
-rw-r--r-- | src/common/log.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/log.c b/src/common/log.c index 9912080af6..5b5b9e086d 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -426,6 +426,8 @@ _log_err(log_domain_mask_t domain, const char *format, ...) static void log_free(logfile_t *victim) { + if (!victim) + return; tor_free(victim->severities); tor_free(victim->filename); tor_free(victim); |