iliaa           Fri Jan 24 11:34:19 2003 EDT

  Modified files:              
    /php4/ext/yp        yp.c 
  Log:
  Fixed a memory leak.
  zend_error -> php_error_docref.
  
  
Index: php4/ext/yp/yp.c
diff -u php4/ext/yp/yp.c:1.33 php4/ext/yp/yp.c:1.34
--- php4/ext/yp/yp.c:1.33       Sat Jan 18 14:20:00 2003
+++ php4/ext/yp/yp.c    Fri Jan 24 11:34:18 2003
@@ -16,7 +16,7 @@
    |          Fredrik Ohrn                                                |
    +----------------------------------------------------------------------+
  */
-/* $Id: yp.c,v 1.33 2003/01/18 19:20:00 iliaa Exp $ */
+/* $Id: yp.c,v 1.34 2003/01/24 16:34:18 iliaa Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -241,7 +241,11 @@
 
        if(call_user_function_ex(CG(function_table), NULL, *((zval **)indata), 
&retval, 3, args, 0, NULL TSRMLS_CC) != SUCCESS)
        {
-               zend_error(E_ERROR, "Function call failed");
+               zval_ptr_dtor(&status);
+               zval_ptr_dtor(&key);
+               zval_ptr_dtor(&value);
+
+               php_error_docref(NULL TSRMLS_CC, E_ERROR, "Function call failed");
                return 1;
        }
 



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

Reply via email to