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:
Taylor Yu 2020-01-24 09:06:30 -06:00
parent 7c76cedf0f
commit f7a2b98674

View file

@ -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;
}