summaryrefslogtreecommitdiff
path: root/debian/patches/0025-Fix-an-fd-leak-in-an-error-case.patch
diff options
context:
space:
mode:
authorAron Xu <aron@debian.org>2015-09-21 22:55:14 +0800
committerAron Xu <aron@debian.org>2015-09-21 22:55:14 +0800
commitd5d6ab20a82566c3b9e20a626df186fe4e670c70 (patch)
tree1e38fd2ee69a0e0e33a0ed8d6a7bb89aa084fd51 /debian/patches/0025-Fix-an-fd-leak-in-an-error-case.patch
parentd548c999ade382febb424b26743b3c4d63159ae0 (diff)
downloadlibxml2-d5d6ab20a82566c3b9e20a626df186fe4e670c70.tar.gz
Revert "Revert "Remove no-longer-needed upstream patches""
This reverts commit 3b14c3fd6410716d407178e48972b1c1bea48c29.
Diffstat (limited to 'debian/patches/0025-Fix-an-fd-leak-in-an-error-case.patch')
-rw-r--r--debian/patches/0025-Fix-an-fd-leak-in-an-error-case.patch24
1 files changed, 0 insertions, 24 deletions
diff --git a/debian/patches/0025-Fix-an-fd-leak-in-an-error-case.patch b/debian/patches/0025-Fix-an-fd-leak-in-an-error-case.patch
deleted file mode 100644
index edf1752..0000000
--- a/debian/patches/0025-Fix-an-fd-leak-in-an-error-case.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-From: Daniel Veillard <veillard@redhat.com>
-Date: Thu, 6 Feb 2014 10:38:00 +0100
-Subject: Fix an fd leak in an error case
-
----
- catalog.c | 5 +++++
- 1 file changed, 5 insertions(+)
-
-diff --git a/catalog.c b/catalog.c
-index 8e34cd2..56991da 100644
---- a/catalog.c
-+++ b/catalog.c
-@@ -994,6 +994,11 @@ xmlLoadFileContent(const char *filename)
- content = (xmlChar*)xmlMallocAtomic(size + 10);
- if (content == NULL) {
- xmlCatalogErrMemory("allocating catalog data");
-+#ifdef HAVE_STAT
-+ close(fd);
-+#else
-+ fclose(fd);
-+#endif
- return (NULL);
- }
- #ifdef HAVE_STAT