]> granicus.if.org Git - php/commitdiff
use proper macro
authorIlia Alshanetsky <iliaa@php.net>
Wed, 8 Oct 2008 23:04:38 +0000 (23:04 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 8 Oct 2008 23:04:38 +0000 (23:04 +0000)
ext/pgsql/pgsql.c

index 1eacf467fe4ff158929ede0832012976f1bf68cc..8583837fbee862da5b3128cfe5f0f7fdd6f17128 100644 (file)
@@ -2891,7 +2891,7 @@ PHP_FUNCTION(pg_free_result)
        if (Z_LVAL_P(result) == 0) {
                RETURN_FALSE;
        }
-       zend_list_delete(Z_LVAL_P(result));
+       zend_list_delete(Z_RESVAL_P(result));
        RETURN_TRUE;
 }
 /* }}} */