diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-10-21 11:17:59 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-10-21 11:17:59 -0400 |
commit | f41be5f9df1bb944c52431f3740e90716b42db6c (patch) | |
tree | 0ce886f4c1ac5ba4cd169e2083b31175b3fe1219 /src | |
parent | 9f5210ae4647749372c022b804dccbc73240aa0e (diff) | |
download | tor-f41be5f9df1bb944c52431f3740e90716b42db6c.tar.gz tor-f41be5f9df1bb944c52431f3740e90716b42db6c.zip |
memory leaks in procmon tests
Diffstat (limited to 'src')
-rw-r--r-- | src/test/test_procmon.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/test_procmon.c b/src/test/test_procmon.c index 4eff52a14d..2855178788 100644 --- a/src/test/test_procmon.c +++ b/src/test/test_procmon.c @@ -33,11 +33,13 @@ test_procmon_tor_process_monitor_new(void *ignored) NULL, NULL, &msg); tt_assert(res); tt_assert(!msg); + tor_process_monitor_free(res); res = tor_process_monitor_new(tor_libevent_get_base(), "44 hello", 0, NULL, NULL, &msg); tt_assert(res); tt_assert(!msg); + tor_process_monitor_free(res); res = tor_process_monitor_new(tor_libevent_get_base(), "45:hello", 0, NULL, NULL, &msg); @@ -45,7 +47,7 @@ test_procmon_tor_process_monitor_new(void *ignored) tt_assert(!msg); done: - (void)0; + tor_process_monitor_free(res); } struct testcase_t procmon_tests[] = { |