Fix possible (but unlikely) mem leak.

svn:r1025
This commit is contained in:
Nick Mathewson
2004-01-30 20:38:08 +00:00
parent 9ad603def3
commit 8e2bdc9e5a
+1 -1
View File
@@ -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;
}