diff options
author | John L. Whiteman <john.l.whiteman@intel.com> | 2014-11-20 12:40:05 -0800 |
---|---|---|
committer | John L. Whiteman <john.l.whiteman@intel.com> | 2014-11-20 12:41:24 -0800 |
commit | 0403348ce6d3052a5d29a40f9597143cfadb329e (patch) | |
tree | 8604c0be17724256a0e7c2257b285c12e658d22e | |
parent | 7b5cb6213ea862ee21134ce712596493ca7eb2ba (diff) | |
download | corewatcher-0403348ce6d3052a5d29a40f9597143cfadb329e.tar.gz corewatcher-0403348ce6d3052a5d29a40f9597143cfadb329e.tar.bz2 corewatcher-0403348ce6d3052a5d29a40f9597143cfadb329e.zip |
Fixed TC-2074: Static analysis issuesHEADtizen_4.0.m1_releasetizen_4.0.IoT.p1_releasetizen_3.0_ivi_releasetizen_3.0.m2.a1_tv_releasetizen_3.0.m2.a1_mobile_releasetizen_3.0.m1_tv_releasetizen_3.0.m1_mobile_releasesubmit/tizen_unified/20170308.100411submit/tizen_mobile/20150302.000000submit/tizen_mobile/20150223.000000submit/tizen_mobile/20150213.000000submit/tizen_mobile/20150129.000000submit/tizen_ivi/20160217.000004submit/tizen_ivi/20160217.000000submit/tizen_4.0/20170828.100005submit/tizen_4.0/20170811.094300submit/tizen_3.0_ivi/20161010.000001submit/tizen_3.0_common/20161104.104000submit/tizen_3.0.m2/20170104.093752submit/tizen/20141120.234546accepted/tizen/unified/20170309.035052accepted/tizen/mobile/20150304.131054accepted/tizen/ivi/20160218.024356accepted/tizen/ivi/20141201.014927accepted/tizen/common/20141121.094326accepted/tizen/4.0/unified/20170828.222243accepted/tizen/4.0/unified/20170816.011038accepted/tizen/3.0/ivi/20161011.043847accepted/tizen/3.0/common/20161114.110443tizen_4.0tizen_3.0_ivitizen_3.0.m2tizen_3.0.m1_tvtizen_3.0.m1_mobiletizen_3.0.2015.q2_commontizen_3.0.2015.q1_commontizen_3.0.2014.q4_commontizen_3.0tizenaccepted/tizen_wearableaccepted/tizen_unifiedaccepted/tizen_tvaccepted/tizen_mobileaccepted/tizen_iviaccepted/tizen_commonaccepted/tizen_4.0_unifiedaccepted/tizen_3.0_iviaccepted/tizen_3.0_common
Change-Id: Ib191bfd04d56850e56006eaff6e981f8331ae19e
Signed-off-by: John L. Whiteman <john.l.whiteman@intel.com>
-rw-r--r-- | packaging/corewatcher.changes | 3 | ||||
-rw-r--r-- | src/coredump.c | 2 |
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); |