diff --git a/src/httpd.js.c b/src/httpd.js.c index ab3b3de5..16401dbd 100644 --- a/src/httpd.js.c +++ b/src/httpd.js.c @@ -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); }