[or-cvs] Fix possible (but unlikely) mem leak.

Nick Mathewson nickm at seul.org
Fri Jan 30 20:38:10 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv18640

Modified Files:
	routerlist.c 
Log Message:
Fix possible (but unlikely) mem leak.

Index: routerlist.c
===================================================================
RCS file: /home/or/cvsroot/src/or/routerlist.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- routerlist.c	30 Jan 2004 20:33:04 -0000	1.16
+++ routerlist.c	30 Jan 2004 20:38:08 -0000	1.17
@@ -1150,7 +1150,7 @@
           }
           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;
           }



More information about the tor-commits mailing list