aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/test.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/test.h b/src/common/test.h
index bb6a8ae00..b5d12ac40 100644
--- a/src/common/test.h
+++ b/src/common/test.h
@@ -139,6 +139,8 @@ extern int have_failed;
__LINE__, \
PRETTY_FUNCTION, \
#expr1, #expr2, mem1, mem2); \
+ tor_free(mem1); \
+ tor_free(mem2); \
goto done; \
} STMT_END