diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2006-11-09 01:44:20 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2006-11-09 01:44:20 +0000 |
commit | c90a4451032d54c3f29cd6b567ba62126fe65208 (patch) | |
tree | 1f25f988e01c264deac6dc41901974adc8eecfd0 | |
parent | 97ea7a1a8c5f6356b1b961fca3dc7cc2cf10bfc4 (diff) |
Don't double-free comm when it's an existingProcess
-rw-r--r-- | ProcessList.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ProcessList.c b/ProcessList.c index c3f0dc5a..d9f31429 100644 --- a/ProcessList.c +++ b/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); } } } |