Change test_memeq macro to not leak memory. Addresses coverity CID 47.

svn:r17577
This commit is contained in:
Nick Mathewson 2008-12-11 06:17:54 +00:00
parent bb8d818e92
commit 3be88b2c70

View File

@ -139,6 +139,8 @@ extern int have_failed;
__LINE__, \ __LINE__, \
PRETTY_FUNCTION, \ PRETTY_FUNCTION, \
#expr1, #expr2, mem1, mem2); \ #expr1, #expr2, mem1, mem2); \
tor_free(mem1); \
tor_free(mem2); \
goto done; \ goto done; \
} STMT_END } STMT_END