summaryrefslogtreecommitdiff
path: root/src/or/test.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-09-30 20:47:58 +0000
committerNick Mathewson <nickm@torproject.org>2005-09-30 20:47:58 +0000
commitde198d800b42218a424d44179ea2881d6dfbf975 (patch)
tree8c1de7020eb5a5d0df125ad4619255f41304d501 /src/or/test.c
parent364fd1ccdffe4a8f6c46137366e4c673b26b453c (diff)
downloadtor-de198d800b42218a424d44179ea2881d6dfbf975.tar.gz
tor-de198d800b42218a424d44179ea2881d6dfbf975.zip
Never call free() on tor_malloc()d memory. This is unlikely to be our current leak, but it may help dmalloc work.
svn:r5168
Diffstat (limited to 'src/or/test.c')
-rw-r--r--src/or/test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/test.c b/src/or/test.c
index 71be68d3df..6af607a7e3 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -543,9 +543,9 @@ test_crypto(void)
test_eq(i,0);
test_memeq(data2, "\xf0\xd6\x78\xaf\xfc\x00\x01\x00",8);
- free(data1);
- free(data2);
- free(data3);
+ tor_free(data1);
+ tor_free(data2);
+ tor_free(data3);
}
static void