Browse Source

Fix a leak memory on the failing case of test_memeq_hex

svn:r18094
Nick Mathewson 15 years ago
parent
commit
943626050c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/common/test.h

+ 2 - 0
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);                                                    \