mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
fix leak in GETCONF
Fix a memory leak introduced by refactoring of control reply formatting code. Fixes bug 33039; bugfix on 0.4.3.1-alpha.
This commit is contained in:
@@ -323,10 +323,8 @@ handle_control_getconf(control_connection_t *conn,
|
||||
send_control_done(conn);
|
||||
}
|
||||
|
||||
SMARTLIST_FOREACH(answers, char *, cp, tor_free(cp));
|
||||
smartlist_free(answers);
|
||||
smartlist_free(unrecognized);
|
||||
|
||||
control_reply_free(answers);
|
||||
control_reply_free(unrecognized);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user