commit 21f45197a2f39ed1899a23e40916f35ccfa75a2a
parent b7bbff0c9c655a938b42a103594f2c34c3f6dcfa
Author: Nick Mathewson <nickm@torproject.org>
Date: Thu, 6 Feb 2020 08:28:25 -0500
Merge branch 'bug33103'
Diffstat:
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/changes/ticket33103 b/changes/ticket33103
@@ -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.
diff --git a/src/feature/control/control_getinfo.c b/src/feature/control/control_getinfo.c
@@ -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);