cvs: php4 /ext/informix ifx.ec
| From: | Daniel Beulshausen | Date: | Fri, 07 Sep 2001 13:20:33 +0000 |
| Subject: | cvs: php4 /ext/informix ifx.ec | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-7290@lists.php.net to get a copy of this message | ||
dbeu Fri Sep 7 09:20:33 2001 EDT
Modified files:
/php4/ext/informix ifx.ec
Log:
fix result freeing
# some of the work in (zif_)ifx_free_result should
# probably be done in the list destructor as well
Index: php4/ext/informix/ifx.ec
diff -u php4/ext/informix/ifx.ec:1.57 php4/ext/informix/ifx.ec:1.58
--- php4/ext/informix/ifx.ec:1.57 Wed Aug 22 04:43:51 2001
+++ php4/ext/informix/ifx.ec Fri Sep 7 09:20:32 2001
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: ifx.ec,v 1.57 2001/08/22 08:43:51 sniper Exp $ */
+/* $Id: ifx.ec,v 1.58 2001/09/07 13:20:32 dbeu Exp $ */
/* -------------------------------------------------------------------
* if you want a function reference : "grep '^\*\*' ifx.ec" will give
@@ -299,10 +299,10 @@
IFXG(num_links)--;
}
-static void ifx_free_result(a_result_id)
-char *a_result_id;
+static void ifx_free_result(zend_rsrc_list_entry *rsrc TSRMLS_DC)
{
- return;
+ IFX_RES *Ifx_Result = (IFX_RES *)rsrc->ptr;
+ efree(Ifx_Result);
}
PHP_INI_BEGIN()
@@ -2768,7 +2768,6 @@
}
EXEC SQL DEALLOCATE DESCRIPTOR :descrpid;
- efree(Ifx_Result); /* this can be safely done now */
zend_list_delete(Z_RESVAL_PP(result));
RETURN_TRUE;