From a0f390b7dc5f09ea7b764435fe0660520956dd49 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Tue, 9 Jan 2024 17:22:39 +0000 Subject: [PATCH] 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 --- src/httpd.js.c | 1 + 1 file changed, 1 insertion(+) 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); }