diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-06-30 14:30:26 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-06-30 14:30:26 -0400 |
commit | 7a7bd1f9ea2df2fc68d0ce4b59ebd413ba7f0ba6 (patch) | |
tree | 432659d8f1df3b5115b68a7f6ea12c564d3d63be /src/test | |
parent | c3b720fb26cbe0ff5f53407ba4929b3bd75256b1 (diff) | |
download | tor-7a7bd1f9ea2df2fc68d0ce4b59ebd413ba7f0ba6.tar.gz tor-7a7bd1f9ea2df2fc68d0ce4b59ebd413ba7f0ba6.zip |
Fix a memory leak in test_dir_populate_dump_desc_fifo
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_dir.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c index 873426c32b..8c708f0eb7 100644 --- a/src/test/test_dir.c +++ b/src/test/test_dir.c @@ -4958,6 +4958,7 @@ test_dir_populate_dump_desc_fifo(void *data) tt_int_op(read_count, ==, 1); tt_int_op(read_call_count, ==, 2); tor_free(expected_filename); + tor_free(file_content); /* This one will match */ fname = @@ -4994,6 +4995,8 @@ test_dir_populate_dump_desc_fifo(void *data) UNMOCK(read_file_to_str); reset_read_file_to_str_mock(); + tor_free(file_content); + return; } |