[Pkg-php-commits] [php/debian-sid] Cherry pick patch to fix a memory leak in SoapServer::handle

Raphael Geissert geissert at debian.org
Wed May 5 21:06:32 UTC 2010


---
 debian/patches/series                       |    1 +
 debian/patches/upstream/soap_mem_leak.patch |   16 ++++++++++++++++
 2 files changed, 17 insertions(+), 0 deletions(-)
 create mode 100644 debian/patches/upstream/soap_mem_leak.patch

diff --git a/debian/patches/series b/debian/patches/series
index a0ab380..ef9ed57 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -66,3 +66,4 @@ upstream/multiple_typos.patch
 upstream/db4.8_workarounds.patch
 upstream/mssql_per_query_timeout.patch
 upstream/incorrect_docroot_eval.patch
+upstream/soap_mem_leak.patch
diff --git a/debian/patches/upstream/soap_mem_leak.patch b/debian/patches/upstream/soap_mem_leak.patch
new file mode 100644
index 0000000..3964ce8
--- /dev/null
+++ b/debian/patches/upstream/soap_mem_leak.patch
@@ -0,0 +1,16 @@
+Description: Fix memory leak in the soap extension
+Origin: http://svn.php.net/viewvc?view=revision&revision=298433
+Last-Update: 2010-05-02
+
+Index: php/ext/soap/soap.c
+===================================================================
+--- php.orig/ext/soap/soap.c
++++ php/ext/soap/soap.c
+@@ -1699,6 +1699,7 @@ PHP_METHOD(SoapServer, handle)
+ 				doc_request = soap_xmlParseMemory(post_data, post_data_length);
+ 			}
+ 		} else {
++			zval_ptr_dtor(&retval);
+ 			return;
+ 		}
+ 	} else {
-- 
1.6.5





More information about the Pkg-php-commits mailing list