소스 검색

aaand another leak. Oops, I guess I lied to weasel when I told him there was no leak here.

svn:r5329
Nick Mathewson 20 년 전
부모
커밋
4cb2435388
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/or/dirserv.c

+ 1 - 0
src/or/dirserv.c

@@ -455,6 +455,7 @@ dirserv_add_descriptor(const char *desc, const char **msg)
          "Not replacing descriptor from '%s'; differences are cosmetic.",
          ri->nickname);
     *msg = "Not replacing router descriptor; no information has changed since the last one with this identity.";
+    routerinfo_free(ri);
     return 0;
   }
   if ((r = router_add_to_routerlist(ri, msg, 0))<0) {