[Pkg-wmaker-commits] [wmrack] 90/97: debian/patches: (fix_resource_leak.patch) Call fclose() on file opened with fopen().
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Sat Aug 22 02:42:09 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmrack.
commit f5b7b5288304a4c1c56a8b12ee26e78002e4f120
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Tue Jan 6 16:52:00 2015 -0600
debian/patches: (fix_resource_leak.patch) Call fclose() on file opened with fopen().
---
debian/patches/fix_resource_leak.patch | 15 +++++++++++++++
debian/patches/series | 1 +
2 files changed, 16 insertions(+)
diff --git a/debian/patches/fix_resource_leak.patch b/debian/patches/fix_resource_leak.patch
new file mode 100644
index 0000000..56ee9e4
--- /dev/null
+++ b/debian/patches/fix_resource_leak.patch
@@ -0,0 +1,15 @@
+Description: Fix resource leak.
+ Call fclose() on file opened with fopen().
+Author: Doug Torrance <dtorrance at monmouthcollege.edu>
+Last-Update: 2015-01-06
+
+--- a/library.c
++++ b/library.c
+@@ -121,6 +121,7 @@
+ lib->f=fopen(lib->name,lib_mode[mode]);
+ lib->mode=mode;
+ }
++ fclose(f);
+ return lib;
+ }
+
diff --git a/debian/patches/series b/debian/patches/series
index 266a1f9..0bdeef3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -8,3 +8,4 @@ update_makefile.patch
fix_-Wformat.patch
fix_expose_loop.patch
check_home.patch
+fix_resource_leak.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmrack.git
More information about the Pkg-wmaker-commits
mailing list