From 1079450d929ae0576738d5fa7b834d4d897590a6 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Mon, 30 Oct 2006 21:54:26 +0000 Subject: [PATCH] Fix allocator mismatch. Bug 306811, r+sr=shaver --- js/src/xpconnect/loader/mozJSComponentLoader.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/js/src/xpconnect/loader/mozJSComponentLoader.cpp b/js/src/xpconnect/loader/mozJSComponentLoader.cpp index 052cb9204d7..119d067b16e 100644 --- a/js/src/xpconnect/loader/mozJSComponentLoader.cpp +++ b/js/src/xpconnect/loader/mozJSComponentLoader.cpp @@ -173,10 +173,7 @@ Dump(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) return JS_FALSE; char *bytes = JS_GetStringBytes(str); - bytes = nsCRT::strdup(bytes); - fputs(bytes, stderr); - nsMemory::Free(bytes); return JS_TRUE; }