summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Douglas <william.douglas@intel.com>2012-05-21 10:57:37 -0700
committerWilliam Douglas <william.douglas@intel.com>2012-05-21 10:57:37 -0700
commit94266e0788ed03467e3936c4302cac87df7e0b75 (patch)
treef9f708f8ae7721459731574e26f892477a2c09eb
parenta2a7c0158e3847476b6dc44cda557f4e9eba3457 (diff)
downloadcorewatcher-94266e0788ed03467e3936c4302cac87df7e0b75.tar.gz
corewatcher-94266e0788ed03467e3936c4302cac87df7e0b75.tar.bz2
corewatcher-94266e0788ed03467e3936c4302cac87df7e0b75.zip
Fix double free possibility
Signed-off-by: William Douglas <william.douglas@intel.com>
-rw-r--r--src/coredump.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/coredump.c b/src/coredump.c
index 1cdb044..72262a4 100644
--- a/src/coredump.c
+++ b/src/coredump.c
@@ -347,6 +347,7 @@ static void build_times(char *cmd, GHashTable *ht_p2p, GHashTable *ht_p2d)
free(rl);
free(pack);
free(date);
+ date = NULL;
}
pclose(file);
free(dline);