summaryrefslogtreecommitdiff
path: root/src/coredump.c
diff options
context:
space:
mode:
authorJohn L. Whiteman <john.l.whiteman@intel.com>2014-11-20 12:40:05 -0800
committerJohn L. Whiteman <john.l.whiteman@intel.com>2014-11-20 12:41:24 -0800
commit0403348ce6d3052a5d29a40f9597143cfadb329e (patch)
tree8604c0be17724256a0e7c2257b285c12e658d22e /src/coredump.c
parent7b5cb6213ea862ee21134ce712596493ca7eb2ba (diff)
downloadcorewatcher-0403348ce6d3052a5d29a40f9597143cfadb329e.tar.gz
corewatcher-0403348ce6d3052a5d29a40f9597143cfadb329e.tar.bz2
corewatcher-0403348ce6d3052a5d29a40f9597143cfadb329e.zip
Change-Id: Ib191bfd04d56850e56006eaff6e981f8331ae19e Signed-off-by: John L. Whiteman <john.l.whiteman@intel.com>
Diffstat (limited to 'src/coredump.c')
-rw-r--r--src/coredump.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/coredump.c b/src/coredump.c
index 7525f28..fc44740 100644
--- a/src/coredump.c
+++ b/src/coredump.c
@@ -188,12 +188,14 @@ static int move_core(char *fullpath, char *extension)
}
closedir(dir);
free(coreprefix);
+ coreprefix = NULL;
if (asprintf(&newpath, "%s%s.%s", processed_folder, corefilename, extension) == -1) {
ret = -1;
goto out;
}
free(corefilename);
+ corefilename = NULL;
rename(fullpath, newpath);
free(newpath);