aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changes/bug114373
-rw-r--r--src/or/dns.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/changes/bug11437 b/changes/bug11437
new file mode 100644
index 0000000000..f5117cae99
--- /dev/null
+++ b/changes/bug11437
@@ -0,0 +1,3 @@
+ o Minor bugfixes:
+ - Stop leaking memory when we successfully resolve a PTR record.
+ Fixes bug 11437; bugfix on 0.2.4.7-alpha.
diff --git a/src/or/dns.c b/src/or/dns.c
index a88a46eb71..21c82e8062 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -1353,6 +1353,7 @@ inform_pending_connections(cached_resolve_t *resolve)
}
resolve->pending_connections = pend->next;
tor_free(pend);
+ tor_free(hostname);
}
}