Skip to content
Snippets Groups Projects
Commit 5a6714e3 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix CIDs 508283 508284 508285 508286 508287

HANDLE_PENDING() macro returns from the calling function (without freeing
allocated resources), so don't use that here.
parent 5e9ced42
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -3038,7 +3038,6 @@ js_telnet_gate(JSContext *cx, uintN argc, jsval *arglist)
if(!JS_GetElement(cx, array, i, &val))
break;
JSVALUE_TO_RASTRING(cx, val, tmp, &tmplen, NULL);
HANDLE_PENDING(cx, tmp);
strListPush(&send_strings, tmp);
}
free(tmp);
......@@ -3124,7 +3123,6 @@ js_rlogin_gate(JSContext *cx, uintN argc, jsval *arglist)
if(!JS_GetElement(cx, array, i, &val))
break;
JSVALUE_TO_RASTRING(cx, val, tmp, &tmplen, NULL);
HANDLE_PENDING(cx, tmp);
strListPush(&send_strings, tmp);
}
free(tmp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment