Fix a memory leak in httpd.js.c.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4747 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2024-01-09 17:22:39 +00:00
parent cb12799111
commit a0f390b7dc

View File

@ -167,6 +167,7 @@ static void _httpd_message_callback(tf_http_request_t* request, int op_code, con
JS_SetPropertyStr(context, event, "data", JS_NewStringLen(context, data, size));
JSValue response = JS_Call(context, on_message, JS_UNDEFINED, 1, &event);
tf_util_report_error(context, response);
JS_FreeValue(context, response);
JS_FreeValue(context, event);
JS_FreeValue(context, on_message);
}