From: Nick Mathewson Date: Tue, 13 Jan 2009 14:43:43 +0000 (+0000) Subject: Fix a leak memory on the failing case of test_memeq_hex X-Git-Tag: tor-0.2.1.11-alpha~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=943626050c745dd6034e692df17b1a932037d500;p=thirdparty%2Ftor.git Fix a leak memory on the failing case of test_memeq_hex svn:r18094 --- 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); \