Leaks.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3888 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
2992b7e955
commit
cb9edaacd4
@ -321,6 +321,7 @@ static JSValue _taskstub_setImports(JSContext* context, JSValueConst this_val, i
|
|||||||
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, kSetImports, (char*)buffer, size);
|
tf_packetstream_send(stub->_stream, kSetImports, (char*)buffer, size);
|
||||||
|
free(buffer);
|
||||||
return JS_UNDEFINED;
|
return JS_UNDEFINED;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -331,6 +332,7 @@ static JSValue _taskstub_setRequires(JSContext* context, JSValueConst this_val,
|
|||||||
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, kSetRequires, (char*)buffer, size);
|
tf_packetstream_send(stub->_stream, kSetRequires, (char*)buffer, size);
|
||||||
|
free(buffer);
|
||||||
return JS_UNDEFINED;
|
return JS_UNDEFINED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user