Browse Source

and a comment so i don't try to 'fix' it again later

svn:r2919
Roger Dingledine 21 years ago
parent
commit
d4ac7300d6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/common/log.c

+ 1 - 0
src/common/log.c

@@ -349,6 +349,7 @@ void close_temp_logs(void)
   for (p = &logfiles; *p; ) {
   for (p = &logfiles; *p; ) {
     if ((*p)->is_temporary) {
     if ((*p)->is_temporary) {
       lf = *p;
       lf = *p;
+      /* we use *p here to handle the edge case of the head of the list */
       *p = (*p)->next;
       *p = (*p)->next;
       close_log(lf);
       close_log(lf);
       tor_free(lf->filename);
       tor_free(lf->filename);