[mw-devel] MW3 r1104 - trunk/src

welshbyte at sucs.org welshbyte at sucs.org
Fri Nov 13 18:24:47 GMT 2009


Author: welshbyte
Date: 2009-11-13 18:24:47 +0000 (Fri, 13 Nov 2009)
New Revision: 1104

Modified:
   trunk/src/js.c
Log:
Plug my leak.


Modified: trunk/src/js.c
===================================================================
--- trunk/src/js.c	2009-11-13 12:24:46 UTC (rev 1103)
+++ trunk/src/js.c	2009-11-13 18:24:47 UTC (rev 1104)
@@ -930,6 +930,7 @@
 			*vp = JSVAL_VOID;
 		} else {
 			JSString *str = JS_NewStringCopyZ(cx, val);
+			free(val);
 			*vp = STRING_TO_JSVAL(str);
 		}
 	}




More information about the mw-devel mailing list