]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a small memory leak when resolving PTR addresses
authorNick Mathewson <nickm@torproject.org>
Tue, 8 Apr 2014 03:29:47 +0000 (23:29 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 8 Apr 2014 03:29:47 +0000 (23:29 -0400)
Fixes bug 11437; bugfix on 0.2.4.7-alpha.

Found by coverity; this is CID 1198198.

changes/bug11437 [new file with mode: 0644]
src/or/dns.c

diff --git a/changes/bug11437 b/changes/bug11437
new file mode 100644 (file)
index 0000000..f5117ca
--- /dev/null
@@ -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.
index f2b7eecc3f892b4367cc3f31c42be97b82f4ebfc..fb1b10d82c8e74e7281dd1063f7c2e73dfa4ab7b 100644 (file)
@@ -1352,6 +1352,7 @@ inform_pending_connections(cached_resolve_t *resolve)
     }
     resolve->pending_connections = pend->next;
     tor_free(pend);
+    tor_free(hostname);
   }
 }