summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornpmccallum <npmccallum@c587cffe-e639-0410-9787-d7902ae8ed56>2008-06-05 18:58:28 +0000
committernpmccallum <npmccallum@c587cffe-e639-0410-9787-d7902ae8ed56>2008-06-05 18:58:28 +0000
commit9c8e082aaa65c8d63415a2f1a8836265e03dbc38 (patch)
treec2e1dee0919526951518ca280483a1fd76d84857
parent5b34daefeeb21d284f9ca93b00fc629f0afe1d21 (diff)
downloadlibproxy-git-9c8e082aaa65c8d63415a2f1a8836265e03dbc38.tar.gz
fix crasher in mozjs
-rw-r--r--src/plugins/mozjs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/mozjs.c b/src/plugins/mozjs.c
index 9d4f135..33cd3e4 100644
--- a/src/plugins/mozjs.c
+++ b/src/plugins/mozjs.c
@@ -59,6 +59,7 @@ static JSBool dnsResolve(JSContext *cx, JSObject *obj, uintN argc, jsval *argv,
// We succeeded
*rval = STRING_TO_JSVAL(JS_NewString(cx, tmp, strlen(tmp)));
+ tmp = NULL;
out:
if (info) freeaddrinfo(info);