summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/corewatcher.changes3
-rw-r--r--src/coredump.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/packaging/corewatcher.changes b/packaging/corewatcher.changes
index 3f23d9d..53be45b 100644
--- a/packaging/corewatcher.changes
+++ b/packaging/corewatcher.changes
@@ -1,3 +1,6 @@
+* Thu Nov 20 2014 John L. Whiteman <john.l.whiteman@intel.com> submit/tizen_mobile/20141120.000000-1-g0394119
+- Fixed TC-2074: Static analysis issues
+
* Sat May 11 2013 Anas Nashif <anas.nashif@intel.com> submit/tizen/20130509.173536@d377e7b
- Set license using %license
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);