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

main
Hisham Muhammad 20 years ago
parent 97ea7a1a8c
commit c90a445103
  1. 4
      ProcessList.c

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

Loading…
Cancel
Save