From: John L. Whiteman Date: Thu, 20 Nov 2014 20:40:05 +0000 (-0800) Subject: Fixed TC-2074: Static analysis issues X-Git-Tag: accepted/tizen/3.0/common/20161114.110443^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;p=platform%2Fupstream%2Fcorewatcher.git Fixed TC-2074: Static analysis issues Change-Id: Ib191bfd04d56850e56006eaff6e981f8331ae19e Signed-off-by: John L. Whiteman --- 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);