Whoa. There's a leak.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3858 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
7e9460f47c
commit
efc5eb2aff
@ -333,6 +333,7 @@ static JSValue _taskstub_loadFile(JSContext* context, JSValueConst this_val, int
|
|||||||
size_t size;
|
size_t size;
|
||||||
tf_serialize_store(tf_task_get(context), stub, &buffer, &size, argv[0]);
|
tf_serialize_store(tf_task_get(context), stub, &buffer, &size, argv[0]);
|
||||||
tf_packetstream_send(stub->_stream, kLoadFile, (char*)buffer, size);
|
tf_packetstream_send(stub->_stream, kLoadFile, (char*)buffer, size);
|
||||||
|
free(buffer);
|
||||||
return JS_UNDEFINED;
|
return JS_UNDEFINED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user