aboutsummaryrefslogtreecommitdiff
path: root/src/or/microdesc.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-02-24 09:47:33 -0500
committerNick Mathewson <nickm@torproject.org>2011-02-24 09:47:33 -0500
commit0a6beb936866447742d1117eefcfeef2e62326fc (patch)
tree183fe8490fcddca114cb220bda8da05de50d8a31 /src/or/microdesc.c
parentfeaa0120d0d08591d3c9e720438d8f2fc34ed736 (diff)
downloadtor-0a6beb936866447742d1117eefcfeef2e62326fc.tar.gz
tor-0a6beb936866447742d1117eefcfeef2e62326fc.zip
Fix memory leak in md-download logic
Also fix some microdesc comments Fix for bug 2623
Diffstat (limited to 'src/or/microdesc.c')
-rw-r--r--src/or/microdesc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/microdesc.c b/src/or/microdesc.c
index 2480b8e3e0..469c2fcadb 100644
--- a/src/or/microdesc.c
+++ b/src/or/microdesc.c
@@ -133,7 +133,7 @@ get_microdesc_cache(void)
* to allow, so we should reject any non-requested microdesc with a different
* digest, and alter the list to contain only the digests of those microdescs
* we didn't find.
- * Return a list of the added microdescriptors. */
+ * Return a newly allocated list of the added microdescriptors, or NULL */
smartlist_t *
microdescs_add_to_cache(microdesc_cache_t *cache,
const char *s, const char *eos, saved_location_t where,
@@ -181,7 +181,7 @@ microdescs_add_to_cache(microdesc_cache_t *cache,
}
/* As microdescs_add_to_cache, but takes a list of micrdescriptors instead of
- * a string to encode. Frees any members of <b>descriptors</b> that it does
+ * a string to decode. Frees any members of <b>descriptors</b> that it does
* not add. */
smartlist_t *
microdescs_add_list_to_cache(microdesc_cache_t *cache,