]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a leak memory on the failing case of test_memeq_hex
authorNick Mathewson <nickm@torproject.org>
Tue, 13 Jan 2009 14:43:43 +0000 (14:43 +0000)
committerNick Mathewson <nickm@torproject.org>
Tue, 13 Jan 2009 14:43:43 +0000 (14:43 +0000)
svn:r18094

src/common/test.h

index 05e17e3fc56de91f43d7f9706d399e742a40c8d9..e3b574428347e6bf064b286e8455c0d5a6a0af13 100644 (file)
              __LINE__,                                                  \
              PRETTY_FUNCTION,                                           \
              #expr1, _test_v2, _mem1, _test_v2);                        \
+      tor_free(_mem1);                                                  \
+      tor_free(_mem2);                                                  \
       goto done;                                                        \
     }                                                                   \
     tor_free(_mem2);                                                    \