aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_options.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-02-24 15:06:12 -0500
committerNick Mathewson <nickm@torproject.org>2016-02-24 15:06:12 -0500
commitba0ddd7467329bb7b6b201c0bd11bf99abcd0d7e (patch)
tree312e43607ec55e1b848ff67f00c7d8ea8afc7094 /src/test/test_options.c
parent73c433a48a15808c87fafbbfe43da60cc4ab7b0e (diff)
downloadtor-ba0ddd7467329bb7b6b201c0bd11bf99abcd0d7e.tar.gz
tor-ba0ddd7467329bb7b6b201c0bd11bf99abcd0d7e.zip
Fix a leak in test_have_enough_mem_for_dircache
Diffstat (limited to 'src/test/test_options.c')
-rw-r--r--src/test/test_options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_options.c b/src/test/test_options.c
index 547464a6c8..68e8f91128 100644
--- a/src/test/test_options.c
+++ b/src/test/test_options.c
@@ -210,7 +210,7 @@ test_have_enough_mem_for_dircache(void *arg)
{
(void)arg;
or_options_t *opt=NULL;
- or_options_t *dflt;
+ or_options_t *dflt=NULL;
config_line_t *cl=NULL;
char *msg=NULL;;
int r;
@@ -292,7 +292,7 @@ test_have_enough_mem_for_dircache(void *arg)
done:
if (msg)
tor_free(msg);
- tor_free(dflt);
+ or_options_free(dflt);
or_options_free(opt);
config_free_lines(cl);
return;