diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-09-05 20:52:15 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-09-05 20:52:15 +0000 |
commit | 0b8117a5c002b262b6ee56acc3719700637416c7 (patch) | |
tree | 73746b443d10620630933d7de5d0f467378fb5d7 /src/or/dirserv.c | |
parent | 4d94e061c7a1af2fbb92ab3114c3ce5f59971a31 (diff) | |
download | tor-0b8117a5c002b262b6ee56acc3719700637416c7.tar.gz tor-0b8117a5c002b262b6ee56acc3719700637416c7.zip |
Fix numerous memory leaks: some were almost impossible to trigger, and some almost inevitable.
svn:r16779
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index c8c2bbe4a5..9d718baa08 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -1983,6 +1983,7 @@ routerstatus_format_entry(char *buf, size_t buf_len, r = tor_snprintf(cp, buf_len - (cp-buf), "p %s\n", summary); if (r<0) { log_warn(LD_BUG, "Not enough space in buffer."); + tor_free(summary); return -1; } cp += strlen(cp); |