Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
acdb95f3
Commit
acdb95f3
authored
May 10, 2013
by
deuce
Browse files
<DigitalMan> Deuce: you're freeing str before converting it to a JSVAL
parent
bb44e9c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/sbbs3/js_uifc.c
src/sbbs3/js_uifc.c
+2
-2
No files found.
src/sbbs3/js_uifc.c
View file @
acdb95f3
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment