mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Fix possible (but unlikely) mem leak.
svn:r1025
This commit is contained in:
@@ -1150,7 +1150,7 @@ _router_get_next_token(const char **s, directory_token_t *tok) {
|
||||
}
|
||||
tok->val.cmd.n_args = i;
|
||||
if (i >= MAX_ARGS) {
|
||||
/* XXX free args[0..i] */
|
||||
router_release_token(tok);
|
||||
tok->tp = _ERR;
|
||||
tok->val.error = "Too many arguments"; return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user