aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index c8c2bbe4a..9d718baa0 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);