[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Fix a memory leak in scheduler/loop_kist



commit 6ba2881aec7299fb486ab0f821c4f2ddcc88190e
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Wed Jan 24 12:07:45 2018 -0500

    Fix a memory leak in scheduler/loop_kist
    
    Fixes bug 25005.
---
 changes/bug25005          | 4 ++++
 src/test/test_scheduler.c | 1 +
 2 files changed, 5 insertions(+)

diff --git a/changes/bug25005 b/changes/bug25005
new file mode 100644
index 000000000..dedf283aa
--- /dev/null
+++ b/changes/bug25005
@@ -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.
+
diff --git a/src/test/test_scheduler.c b/src/test/test_scheduler.c
index 63add2f38..18f989514 100644
--- a/src/test/test_scheduler.c
+++ b/src/test/test_scheduler.c
@@ -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);



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits