summaryrefslogtreecommitdiff
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
parent7b5cb6213ea862ee21134ce712596493ca7eb2ba (diff)
downloadcorewatcher-tizen.tar.gz
corewatcher-tizen.tar.bz2
corewatcher-tizen.zip
Change-Id: Ib191bfd04d56850e56006eaff6e981f8331ae19e Signed-off-by: John L. Whiteman <john.l.whiteman@intel.com>
-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);