diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-09-30 20:47:58 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-09-30 20:47:58 +0000 |
commit | de198d800b42218a424d44179ea2881d6dfbf975 (patch) | |
tree | 8c1de7020eb5a5d0df125ad4619255f41304d501 /src/common/container.c | |
parent | 364fd1ccdffe4a8f6c46137366e4c673b26b453c (diff) | |
download | tor-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.c | 4 |
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 |