From d4ac7300d6d0a3db444fb4a6683a03f91e8dbeac Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sat, 20 Nov 2004 12:17:19 +0000 Subject: [PATCH] and a comment so i don't try to 'fix' it again later svn:r2919 --- src/common/log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/log.c b/src/common/log.c index 80b4ada61e..e8b43228b0 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);