]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a memory leak in handling GETINFO.
authorNick Mathewson <nickm@torproject.org>
Thu, 6 Feb 2020 00:18:32 +0000 (19:18 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 6 Feb 2020 00:18:32 +0000 (19:18 -0500)
Fixes bug 33103; bugfix on 0.4.3.1-alpha.

changes/ticket33103 [new file with mode: 0644]
src/feature/control/control_getinfo.c

diff --git a/changes/ticket33103 b/changes/ticket33103
new file mode 100644 (file)
index 0000000..889805f
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor bugfixes (controller):
+    - Fix a memory leak in GETINFO responses. Fixes bug 33103;
+      bugfix on 0.4.3.1-alpha.
index 6f30878d239395218ea7ff84c5476f78be249dc4..5dcc4b170d04f0d6165801d0c3382044abb0c615 100644 (file)
@@ -1735,6 +1735,7 @@ handle_control_getinfo(control_connection_t *conn,
       }
     } else {
       control_reply_add_one_kv(answers, 250, KV_RAW, q, ans);
+      tor_free(ans);
     }
   } SMARTLIST_FOREACH_END(q);