diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-02-01 10:57:01 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-02-01 10:57:01 -0500 |
commit | 77788fa5374448fe6e12ab9bf7672d8187f73997 (patch) | |
tree | dfb981c04b9250e123747a3a19565a1d1fcc0338 /src/test/fuzz/fuzz_vrs.c | |
parent | ec1b8020d50d19ae3824a412a7205b39583a2e9b (diff) | |
download | tor-77788fa5374448fe6e12ab9bf7672d8187f73997.tar.gz tor-77788fa5374448fe6e12ab9bf7672d8187f73997.zip |
Fix a memory-leak in fuzz_vrs.c
Diffstat (limited to 'src/test/fuzz/fuzz_vrs.c')
-rw-r--r-- | src/test/fuzz/fuzz_vrs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/fuzz/fuzz_vrs.c b/src/test/fuzz/fuzz_vrs.c index d2c0369f27..9301a9bcc8 100644 --- a/src/test/fuzz/fuzz_vrs.c +++ b/src/test/fuzz/fuzz_vrs.c @@ -38,6 +38,8 @@ fuzz_init(void) int fuzz_cleanup(void) { + SMARTLIST_FOREACH(dummy_vote->known_flags, char *, cp, tor_free(cp)); + smartlist_free(dummy_vote->known_flags); tor_free(dummy_vote); return 0; } |