From: Nick Mathewson Date: Thu, 11 Dec 2008 06:17:54 +0000 (+0000) Subject: Change test_memeq macro to not leak memory. Addresses coverity CID 47. X-Git-Tag: tor-0.2.1.9-alpha~125 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3be88b2c7090ecccd5db8370b652c41400bd5c30;p=thirdparty%2Ftor.git Change test_memeq macro to not leak memory. Addresses coverity CID 47. svn:r17577 --- diff --git a/src/common/test.h b/src/common/test.h index bb6a8ae009..b5d12ac407 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