]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a memory leak in scheduler/loop_kist
authorNick Mathewson <nickm@torproject.org>
Wed, 24 Jan 2018 17:07:45 +0000 (12:07 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 24 Jan 2018 17:07:45 +0000 (12:07 -0500)
Fixes bug 25005.

changes/bug25005 [new file with mode: 0644]
src/test/test_scheduler.c

diff --git a/changes/bug25005 b/changes/bug25005
new file mode 100644 (file)
index 0000000..dedf283
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes (unit tests):
+    - Fix a memory leak in the scheduler/loop_kist unit test. Fixes bug
+      25005; bugfix on 0.3.2.7-rc.
+
index 63add2f382db0412a88666ac6227c744546b8fea..18f98951464bb62738c18743bb20bdc89be0e8fc 100644 (file)
@@ -864,6 +864,7 @@ test_scheduler_loop_kist(void *arg)
   tt_assert(ch3);
   ch3->magic = TLS_CHAN_MAGIC;
   ch3->state = CHANNEL_STATE_OPEN;
+  circuitmux_free(ch3->cmux);
   ch3->cmux = circuitmux_alloc();
   channel_register(ch3);
   tt_assert(ch3->registered);