diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-02-22 16:20:11 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-02-22 16:20:11 -0500 |
commit | e019e11e61c2c57c84505aaf2559966bddd4a10d (patch) | |
tree | 75de1c9e102bdbb5f6c17fb084c3c29b1aa0086f /src/test/test_options.c | |
parent | 4cc50ee805538635d816e15766f25f5f97b3f180 (diff) | |
download | tor-e019e11e61c2c57c84505aaf2559966bddd4a10d.tar.gz tor-e019e11e61c2c57c84505aaf2559966bddd4a10d.zip |
Another memory leak in the tests
Diffstat (limited to 'src/test/test_options.c')
-rw-r--r-- | src/test/test_options.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/test_options.c b/src/test/test_options.c index 1814fbf5c3..b2be8a9c65 100644 --- a/src/test/test_options.c +++ b/src/test/test_options.c @@ -242,6 +242,7 @@ test_have_enough_mem_for_dircache(void *arg) } tor_free(msg); + config_free_lines(cl); cl = NULL; configuration = "ORPort 8080\nDirCache 1\nBridgeRelay 1"; r = config_get_lines(configuration, &cl, 1); tt_int_op(r, OP_EQ, 0); @@ -264,6 +265,7 @@ test_have_enough_mem_for_dircache(void *arg) } tor_free(msg); + config_free_lines(cl); cl = NULL; configuration = "ORPort 8080\nDirCache 0"; r = config_get_lines(configuration, &cl, 1); tt_int_op(r, OP_EQ, 0); @@ -293,7 +295,7 @@ test_have_enough_mem_for_dircache(void *arg) tor_free(msg); tor_free(dflt); or_options_free(opt); - tor_free(cl); + config_free_lines(cl); return; } |