felipe                                   Sat, 24 Apr 2010 16:59:09 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=298433

Log:
- Fixed memory leak

Changed paths:
    U   php/php-src/branches/PHP_5_2/ext/soap/soap.c
    U   php/php-src/branches/PHP_5_3/ext/soap/soap.c
    U   php/php-src/trunk/ext/soap/soap.c

Modified: php/php-src/branches/PHP_5_2/ext/soap/soap.c
===================================================================
--- php/php-src/branches/PHP_5_2/ext/soap/soap.c        2010-04-24 14:30:17 UTC 
(rev 298432)
+++ php/php-src/branches/PHP_5_2/ext/soap/soap.c        2010-04-24 16:59:09 UTC 
(rev 298433)
@@ -1531,6 +1531,7 @@
                                doc_request = soap_xmlParseMemory(post_data, 
post_data_length);
                        }
                } else {
+                       zval_ptr_dtor(&retval);
                        return;
                }
        } else {

Modified: php/php-src/branches/PHP_5_3/ext/soap/soap.c
===================================================================
--- php/php-src/branches/PHP_5_3/ext/soap/soap.c        2010-04-24 14:30:17 UTC 
(rev 298432)
+++ php/php-src/branches/PHP_5_3/ext/soap/soap.c        2010-04-24 16:59:09 UTC 
(rev 298433)
@@ -1699,6 +1699,7 @@
                                doc_request = soap_xmlParseMemory(post_data, 
post_data_length);
                        }
                } else {
+                       zval_ptr_dtor(&retval);
                        return;
                }
        } else {

Modified: php/php-src/trunk/ext/soap/soap.c
===================================================================
--- php/php-src/trunk/ext/soap/soap.c   2010-04-24 14:30:17 UTC (rev 298432)
+++ php/php-src/trunk/ext/soap/soap.c   2010-04-24 16:59:09 UTC (rev 298433)
@@ -1699,6 +1699,7 @@
                                doc_request = soap_xmlParseMemory(post_data, 
post_data_length);
                        }
                } else {
+                       zval_ptr_dtor(&retval);
                        return;
                }
        } else {

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to