Explorar o código

Fix memory leak found in CID #1405876.

Alexander Færøy %!s(int64=7) %!d(string=hai) anos
pai
achega
60e97953ef
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/or/directory.c

+ 1 - 0
src/or/directory.c

@@ -3627,6 +3627,7 @@ parse_or_diff_from_header(smartlist_t **digests_out, const char *headers)
   } SMARTLIST_FOREACH_END(hex);
   SMARTLIST_FOREACH(hex_digests, char *, cp, tor_free(cp));
   smartlist_free(hex_digests);
+  tor_free(hdr);
   return 0;
 }