소스 검색

Fix a brazen memleak in consdiffmgr_add_consensus()

Nick Mathewson 8 년 전
부모
커밋
b8f7488e94
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/or/consdiffmgr.c

+ 1 - 0
src/or/consdiffmgr.c

@@ -486,6 +486,7 @@ consdiffmgr_add_consensus(const char *consensus,
                                 labels,
                                 (const uint8_t *)body_compressed,
                                 size_compressed);
+    tor_free(body_compressed);
     config_free_lines(labels);
   }