Skip to content

Commit

Permalink
Fix missing NULL initializations
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed May 18, 2015
1 parent 5040815 commit bdcfa37
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions reprozip/native/tracer.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ struct Process *trace_get_empty_process(void)
processes[i] = pool++;
processes[i]->status = PROCESS_FREE;
processes[i]->threadgroup = NULL;
processes[i]->syscall_info = NULL;
}
return processes[prev_size];
}
Expand Down Expand Up @@ -184,12 +185,10 @@ void trace_free_process(struct Process *process)
log_debug(process->threadgroup->tgid,
"deallocating threadgroup");
if(process->threadgroup->wd != NULL)
{
free(process->threadgroup->wd);
process->threadgroup->wd = NULL;
}
free(process->threadgroup);
}
process->threadgroup = NULL;
}
else if(verbosity >= 3)
log_debug(process->tid, "threadgroup==NULL");
Expand Down

0 comments on commit bdcfa37

Please sign in to comment.