diff options
Diffstat (limited to 'src/test/test_options.c')
-rw-r--r-- | src/test/test_options.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/test_options.c b/src/test/test_options.c index 10ee1f962b..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); @@ -292,8 +294,8 @@ test_have_enough_mem_for_dircache(void *arg) if (msg) tor_free(msg); tor_free(dflt); - tor_free(opt); - tor_free(cl); + or_options_free(opt); + config_free_lines(cl); return; } |