From 0403348ce6d3052a5d29a40f9597143cfadb329e Mon Sep 17 00:00:00 2001 From: "John L. Whiteman" Date: Thu, 20 Nov 2014 12:40:05 -0800 Subject: Fixed TC-2074: Static analysis issues Change-Id: Ib191bfd04d56850e56006eaff6e981f8331ae19e Signed-off-by: John L. Whiteman --- packaging/corewatcher.changes | 3 +++ src/coredump.c | 2 ++ 2 files changed, 5 insertions(+) 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 submit/tizen_mobile/20141120.000000-1-g0394119 +- Fixed TC-2074: Static analysis issues + * Sat May 11 2013 Anas Nashif 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); -- cgit v1.2.3