aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-07-22 22:49:49 +0000
committerNick Mathewson <nickm@torproject.org>2007-07-22 22:49:49 +0000
commit701fce8e5cf875e42491207e6861da795908fbf5 (patch)
treecb63992e4a753814d62a68d11b0ba2a5e1d1200c /src/or/circuitbuild.c
parent0104882e9b320a6b9b5d02fdd8b638d90fff1a1c (diff)
downloadtor-701fce8e5cf875e42491207e6861da795908fbf5.tar
tor-701fce8e5cf875e42491207e6861da795908fbf5.tar.gz
r13858@catbus: nickm | 2007-07-22 18:44:02 -0400
Fix/note some relatively trivial mem usage issues svn:r10905
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 5cf90bd58..8f2e4ed74 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -1072,7 +1072,8 @@ circuit_get_unhandled_ports(time_t now)
int i;
for (i = 0; i < smartlist_len(source); ++i) {
- tmp = tor_malloc(sizeof(uint16_t));
+ /*XXXX020 some of these are leaked somewhere.. fix that. */
+ tmp = tor_malloc(sizeof(uint16_t));
memcpy(tmp, smartlist_get(source, i), sizeof(uint16_t));
smartlist_add(dest, tmp);
}