Follow-up fix for the follow-up fix for 465460 (r=me, again).
authorAndreas Gal <gal@mozilla.com>
Tue, 16 Dec 2008 21:19:00 -0800
changeset 23078 7c898d7b2e9eae2b6983954cd0d6f7d2a19327a9
parent 23077 1329b1e3edd3bd779ebfb12ae4226707633c6bd7
child 23079 2bf87d135d1c0e57959112d126eb849b4fcce52f
push id4346
push userrsayre@mozilla.com
push dateFri, 26 Dec 2008 01:26:36 +0000
treeherdermozilla-central@8eb5a5b83a93 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme, again
bugs465460
milestone1.9.2a1pre
Follow-up fix for the follow-up fix for 465460 (r=me, again).
js/src/js.cpp
--- a/js/src/js.cpp
+++ b/js/src/js.cpp
@@ -3012,17 +3012,17 @@ Snarf(JSContext *cx, JSObject *obj, uint
                         len = (size_t)cc;
                         ok = JS_TRUE;
                     }
                 }
             }
         }
         fclose(file);
     }
-    JS_free(cx, pathname);
+    JS_free(cx, (void*)pathname);
     if (!ok) {
         JS_free(cx, buf);
         return ok;
     }
 
     buf[len] = '\0';
     str = JS_NewString(cx, buf, len);
     if (!str) {