[Pkg-wmaker-commits] [wmcube] 46/67: debian/patches: (fix_cppcheck_warnings.patch) Fix warnings found by cppcheck.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Tue Aug 25 03:22:19 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmcube.

commit 537ed870feb7383e0b6b9d50d4d7dd2e72ffc3af
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Wed Jan 14 08:12:43 2015 -0600

    debian/patches: (fix_cppcheck_warnings.patch) Fix warnings found by
    cppcheck.
---
 debian/patches/fix_cppcheck_warnings.patch | 22 ++++++++++++++++++++++
 debian/patches/series                      |  1 +
 2 files changed, 23 insertions(+)

diff --git a/debian/patches/fix_cppcheck_warnings.patch b/debian/patches/fix_cppcheck_warnings.patch
new file mode 100644
index 0000000..339b2d3
--- /dev/null
+++ b/debian/patches/fix_cppcheck_warnings.patch
@@ -0,0 +1,22 @@
+Description: Fix warnings found by cppcheck.
+Author: Doug Torrance <dtorrance at monmouthcollege.edu>
+Last-Update: 2015-01-14
+
+--- a/wmcube/wmcube.c
++++ b/wmcube/wmcube.c
+@@ -434,6 +434,7 @@
+ 		usleep(9000);
+ 	}
+ 
++	free(tmp);
+ 	zoff = 3600;
+ }	
+ 
+@@ -1143,6 +1144,7 @@
+ 		    "sure you have an SMP system?\n",check_cpu);
+                 return -1;
+         }
++	fclose(fp);
+ 	return (0); 
+ }
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 59a4cef..effee9a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ update_makefile.patch
 fix_-Wunused-result.patch
 freebsd_sysctl.patch
 fix_grammar.patch
+fix_cppcheck_warnings.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmcube.git



More information about the Pkg-wmaker-commits mailing list