Browse Source

Fix possible (but unlikely) mem leak.

svn:r1025
Nick Mathewson 22 years ago
parent
commit
6c3f55526a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/routerlist.c

+ 1 - 1
src/or/routerlist.c

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