diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/common/log.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common/log.c b/src/common/log.c index 3a4f32e176..2b0c2cc65a 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -393,9 +393,7 @@ int add_file_log(int loglevelMin, int loglevelMax, const char *filename) add_stream_log(loglevelMin, loglevelMax, filename, f); logfiles->needs_close = 1; if (log_tor_version(logfiles, 0) < 0) { - logfile_t *victim = logfiles; - logfiles = victim->next; - delete_log(victim); + delete_log(logfiles); } return 0; } |