From c90a4451032d54c3f29cd6b567ba62126fe65208 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 9 Nov 2006 01:44:20 +0000 Subject: Don't double-free comm when it's an existingProcess --- ProcessList.c | 4 ++-- 1 file 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); } } } -- cgit v1.2.3