diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-12-22 12:27:26 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-12-22 12:27:26 -0500 |
commit | 03d2df62f614f97d2b5cf52518565ce91333ba87 (patch) | |
tree | 0d9ae7750a5bfd29c886a3820306fdec97fbae78 /src/or/channel.c | |
parent | b94cb401d2185566e7fb52b78c5a5a6747987f99 (diff) | |
download | tor-03d2df62f614f97d2b5cf52518565ce91333ba87.tar.gz tor-03d2df62f614f97d2b5cf52518565ce91333ba87.zip |
Fix a bunch of memory leaks in the unit tests. Found with valgrind
Diffstat (limited to 'src/or/channel.c')
-rw-r--r-- | src/or/channel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/channel.c b/src/or/channel.c index 4826bdd0a7..cc609b5b72 100644 --- a/src/or/channel.c +++ b/src/or/channel.c @@ -147,7 +147,6 @@ HT_GENERATE2(channel_idmap, channel_idmap_entry_s, node, channel_idmap_hash, channel_idmap_eq, 0.5, tor_reallocarray_, tor_free_); static cell_queue_entry_t * cell_queue_entry_dup(cell_queue_entry_t *q); -static void cell_queue_entry_free(cell_queue_entry_t *q, int handed_off); #if 0 static int cell_queue_entry_is_padding(cell_queue_entry_t *q); #endif @@ -1569,7 +1568,7 @@ cell_queue_entry_dup(cell_queue_entry_t *q) * them) or not (we should free). */ -static void +STATIC void cell_queue_entry_free(cell_queue_entry_t *q, int handed_off) { if (!q) return; |