[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



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