mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Fix a memory leak in test_dir_populate_dump_desc_fifo
This commit is contained in:
parent
c3b720fb26
commit
7a7bd1f9ea
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user