summaryrefslogtreecommitdiff
path: root/ext/informix
diff options
context:
space:
mode:
authorDaniel Beulshausen <dbeu@php.net>2001-09-07 13:20:33 +0000
committerDaniel Beulshausen <dbeu@php.net>2001-09-07 13:20:33 +0000
commitda0c69d7b997d3f41275c88bedf14c16ed38af2d (patch)
tree38c59fe7d9a697a0fbece43f322b5841e20af996 /ext/informix
parent5569abe1eebea9da86ca97534b19bcfb3b0f4a85 (diff)
downloadphp-git-da0c69d7b997d3f41275c88bedf14c16ed38af2d.tar.gz
fix result freeing
# some of the work in (zif_)ifx_free_result should # probably be done in the list destructor as well
Diffstat (limited to 'ext/informix')
-rw-r--r--ext/informix/ifx.ec7
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/informix/ifx.ec b/ext/informix/ifx.ec
index f0bd22c0ca..2e863e5033 100644
--- a/ext/informix/ifx.ec
+++ b/ext/informix/ifx.ec
@@ -299,10 +299,10 @@ EXEC SQL END DECLARE SECTION;
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 END DECLARE SECTION;
}
EXEC SQL DEALLOCATE DESCRIPTOR :descrpid;
- efree(Ifx_Result); /* this can be safely done now */
zend_list_delete(Z_RESVAL_PP(result));
RETURN_TRUE;