Don't free an undefined JSValue.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4717 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
f2f6d78790
commit
2d73116bc0
@ -39,7 +39,7 @@ static JSValue _httpd_response_end(JSContext* context, JSValueConst this_val, in
|
|||||||
tf_http_request_t* request = JS_GetOpaque(this_val, _httpd_request_class_id);
|
tf_http_request_t* request = JS_GetOpaque(this_val, _httpd_request_class_id);
|
||||||
size_t length = 0;
|
size_t length = 0;
|
||||||
const void* data = NULL;
|
const void* data = NULL;
|
||||||
JSValue buffer;
|
JSValue buffer = JS_UNDEFINED;
|
||||||
if (JS_IsString(argv[0]))
|
if (JS_IsString(argv[0]))
|
||||||
{
|
{
|
||||||
data = JS_ToCStringLen(context, &length, argv[0]);
|
data = JS_ToCStringLen(context, &length, argv[0]);
|
||||||
|
Loading…
Reference in New Issue
Block a user