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

This commit is contained in:
Hisham Muhammad 2006-11-09 01:44:20 +00:00
parent 97ea7a1a8c
commit c90a445103
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}
}