Pārlūkot izejas kodu

fix a memory leak

Nick Mathewson 7 gadi atpakaļ
vecāks
revīzija
460b923026
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      src/or/consdiffmgr.c

+ 1 - 0
src/or/consdiffmgr.c

@@ -1758,6 +1758,7 @@ consensus_queue_compression_work(const char *consensus,
     config_line_prepend(&job->labels_in, LABEL_SIGNATORIES, signers);
     tor_free(signers);
     SMARTLIST_FOREACH(hexvoters, char *, cp, tor_free(cp));
+    smartlist_free(hexvoters);
   }
 
   if (background_compression) {