Let's try -fanalyzer.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4431 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
11
src/task.c
11
src/task.c
@ -237,8 +237,8 @@ static import_record_t** _tf_task_find_import(tf_task_t* task, taskid_t task_id,
|
||||
|
||||
static bool _import_record_release(import_record_t** import)
|
||||
{
|
||||
import_record_t* record = *import;
|
||||
if (--record->_useCount == 0)
|
||||
import_record_t* record = import ? *import : NULL;
|
||||
if (record && --record->_useCount == 0)
|
||||
{
|
||||
tf_task_t* task = record->_owner;
|
||||
JSContext* context = task->_context;
|
||||
@ -530,9 +530,12 @@ JSValue _task_invokeExport_internal(tf_taskstub_t* from, tf_task_t* to, exportid
|
||||
tf_trace_end(to->_trace);
|
||||
|
||||
JS_FreeValue(to->_context, this_val);
|
||||
for (int i = 0; i < length - 1; i++)
|
||||
if (argument_array)
|
||||
{
|
||||
JS_FreeValue(to->_context, argument_array[i]);
|
||||
for (int i = 0; i < length - 1; i++)
|
||||
{
|
||||
JS_FreeValue(to->_context, argument_array[i]);
|
||||
}
|
||||
}
|
||||
JS_FreeValue(to->_context, arguments);
|
||||
}
|
||||
|
Reference in New Issue
Block a user