summaryrefslogtreecommitdiff
path: root/src/common/container.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/common/container.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/common/container.c')
-rw-r--r--src/common/container.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/container.c b/src/common/container.c
index 39cabe9c5d..88f0ca4336 100644
--- a/src/common/container.c
+++ b/src/common/container.c
@@ -58,8 +58,8 @@ smartlist_create(void)
void
smartlist_free(smartlist_t *sl)
{
- free(sl->list);
- free(sl);
+ tor_free(sl->list);
+ tor_free(sl);
}
/** Change the capacity of the smartlist to <b>n</b>, so that we can grow