From 943626050c745dd6034e692df17b1a932037d500 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 13 Jan 2009 14:43:43 +0000 Subject: [PATCH] Fix a leak memory on the failing case of test_memeq_hex svn:r18094 --- src/common/test.h | 2 ++ 1 file changed, 2 insertions(+) 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); \