From efc5eb2affb863075c379e76ac40612a6797228e Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Tue, 8 Mar 2022 02:33:32 +0000 Subject: [PATCH] Whoa. There's a leak. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3858 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/taskstub.js.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/taskstub.js.c b/src/taskstub.js.c index 7dd1cff1..c0996959 100644 --- a/src/taskstub.js.c +++ b/src/taskstub.js.c @@ -333,6 +333,7 @@ static JSValue _taskstub_loadFile(JSContext* context, JSValueConst this_val, int size_t size; tf_serialize_store(tf_task_get(context), stub, &buffer, &size, argv[0]); tf_packetstream_send(stub->_stream, kLoadFile, (char*)buffer, size); + free(buffer); return JS_UNDEFINED; }