]> granicus.if.org Git - php/commitdiff
plug a leak
authorAntony Dovgal <tony2001@php.net>
Thu, 4 May 2006 22:47:55 +0000 (22:47 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 4 May 2006 22:47:55 +0000 (22:47 +0000)
ext/informix/ifx.ec

index 8410a1d2f82096cc45774651e9ad33c09b32cbe8..72a2c55e5ed7510c19285aaa2055daadaef85054 100644 (file)
@@ -2624,6 +2624,7 @@ EXEC SQL END DECLARE SECTION;
                        IFXG(sv_sqlcode) = SQLCODE;
                        php_error_docref(NULL TSRMLS_CC, E_WARNING, "Get descriptor (field # %d) fails (%s)", i, ifx_err);
                        efree(ifx_err);
+                       zval_dtor(return_value);
                        RETURN_FALSE;
                }
 
@@ -2789,6 +2790,7 @@ EXEC SQL END DECLARE SECTION;
                        IFXG(sv_sqlcode) = SQLCODE;
                        php_error_docref(NULL TSRMLS_CC, E_WARNING, "Get descriptor (field # %d) fails (%s)", i, ifx_err);
                        efree(ifx_err);
+                       zval_dtor(return_value);
                        RETURN_FALSE;
                }