summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2017-05-05 11:35:12 +0200
committerAlexander Færøy <ahf@torproject.org>2017-05-05 11:35:12 +0200
commit60e97953ef4b139f4af3fbd71db664c03961f2eb (patch)
tree064fb9b863a9d6ee8b69efe058a4db0d1be52846 /src
parenta61020ebd45e81dec36bcfad460953e1920a11f9 (diff)
downloadtor-60e97953ef4b139f4af3fbd71db664c03961f2eb.tar.gz
tor-60e97953ef4b139f4af3fbd71db664c03961f2eb.zip
Fix memory leak found in CID #1405876.
Diffstat (limited to 'src')
-rw-r--r--src/or/directory.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 8b63e4df1f..67c28e1f3e 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;
}