Commit acdb95f3 authored by deuce's avatar deuce
Browse files

<DigitalMan> Deuce: you're freeing str before converting it to a JSVAL

parent bb44e9c0
......@@ -485,11 +485,11 @@ js_uifc_input(JSContext *cx, uintN argc, jsval *arglist)
}
if(prompt)
free(prompt);
if(str)
free(str);
JS_RESUMEREQUEST(cx, rc);
JS_SET_RVAL(cx, arglist, STRING_TO_JSVAL(JS_NewStringCopyZ(cx,str)));
if(str)
free(str);
return(JS_TRUE);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment