Commit c90a4451 authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

Don't double-free comm when it's an existingProcess

parent 97ea7a1a
......@@ -606,12 +606,12 @@ void ProcessList_processEntries(ProcessList* this, char* dirname, int parent, fl
// Exception handler.
errorReadingProcess: {
if (existingProcess)
ProcessList_remove(this, process);
if (process->comm) {
free(process->comm);
process->comm = NULL;
}
if (existingProcess)
ProcessList_remove(this, process);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment