Fix another coverity-spotted memleak

This commit is contained in:
Sebastian Hahn
2010-02-23 15:02:34 +01:00
parent 3ae5bee303
commit 7681e355ed
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -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;
}