mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +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:
parent
7c76cedf0f
commit
f7a2b98674
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue