diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-11 06:17:54 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-11 06:17:54 +0000 |
commit | 3be88b2c7090ecccd5db8370b652c41400bd5c30 (patch) | |
tree | b6c1c845dab05fac3e845804d1d6acfa9a0b4579 /src/common/test.h | |
parent | bb8d818e929be0f4521189c16bac0f29f723f27e (diff) | |
download | tor-3be88b2c7090ecccd5db8370b652c41400bd5c30.tar tor-3be88b2c7090ecccd5db8370b652c41400bd5c30.tar.gz |
Change test_memeq macro to not leak memory. Addresses coverity CID 47.
svn:r17577
Diffstat (limited to 'src/common/test.h')
-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 bb6a8ae00..b5d12ac40 100644 --- a/src/common/test.h +++ b/src/common/test.h @@ -139,6 +139,8 @@ extern int have_failed; __LINE__, \ PRETTY_FUNCTION, \ #expr1, #expr2, mem1, mem2); \ + tor_free(mem1); \ + tor_free(mem2); \ goto done; \ } STMT_END |