From 7681e355ed5da8d4f41bfc5a3fc0b1bcf67add45 Mon Sep 17 00:00:00 2001 From: Sebastian Hahn Date: Tue, 23 Feb 2010 15:02:34 +0100 Subject: Fix another coverity-spotted memleak --- src/or/control.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/or/control.c b/src/or/control.c index 0f7185528..5101fdef4 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -2121,6 +2121,8 @@ handle_control_extendcircuit(control_connection_t *conn, uint32_t len, if (!zero_circ && !(circ = get_circ(smartlist_get(args,0)))) { connection_printf_to_buf(conn, "552 Unknown circuit \"%s\"\r\n", (char*)smartlist_get(args, 0)); + SMARTLIST_FOREACH(args, char *, cp, tor_free(cp)); + smartlist_free(args); goto done; } -- cgit v1.2.3