[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Fix memory leak found in CID #1405876.



commit 60e97953ef4b139f4af3fbd71db664c03961f2eb
Author: Alexander Færøy <ahf@xxxxxxxxxxxxxx>
Date:   Fri May 5 11:35:12 2017 +0200

    Fix memory leak found in CID #1405876.
---
 src/or/directory.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/or/directory.c b/src/or/directory.c
index 8b63e4d..67c28e1 100644
--- a/src/or/directory.c
+++ b/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;
 }
 

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits