瀏覽代碼

Fix a leak memory on the failing case of test_memeq_hex

svn:r18094
Nick Mathewson 16 年之前
父節點
當前提交
943626050c
共有 1 個文件被更改,包括 2 次插入0 次删除
  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);                                                    \