diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-01-13 14:43:43 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-01-13 14:43:43 +0000 |
commit | 943626050c745dd6034e692df17b1a932037d500 (patch) | |
tree | bc410c9c05e60903ec0b55265a426f4370dc79c9 | |
parent | 24ff823b0e211d919aa9143c059210c542453de1 (diff) | |
download | tor-943626050c745dd6034e692df17b1a932037d500.tar.gz tor-943626050c745dd6034e692df17b1a932037d500.zip |
Fix a leak memory on the failing case of test_memeq_hex
svn:r18094
-rw-r--r-- | src/common/test.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/test.h b/src/common/test.h index 05e17e3fc5..e3b5744283 100644 --- a/src/common/test.h +++ b/src/common/test.h @@ -158,6 +158,8 @@ __LINE__, \ PRETTY_FUNCTION, \ #expr1, _test_v2, _mem1, _test_v2); \ + tor_free(_mem1); \ + tor_free(_mem2); \ goto done; \ } \ tor_free(_mem2); \ |