diff options
Diffstat (limited to 'src/common/log.c')
-rw-r--r-- | src/common/log.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/log.c b/src/common/log.c index 80b4ada61..e8b43228b 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -349,6 +349,7 @@ void close_temp_logs(void) for (p = &logfiles; *p; ) { if ((*p)->is_temporary) { lf = *p; + /* we use *p here to handle the edge case of the head of the list */ *p = (*p)->next; close_log(lf); tor_free(lf->filename); |