]> granicus.if.org Git - php/commitdiff
fix leak
authorWez Furlong <wez@php.net>
Fri, 8 Jul 2005 20:45:19 +0000 (20:45 +0000)
committerWez Furlong <wez@php.net>
Fri, 8 Jul 2005 20:45:19 +0000 (20:45 +0000)
ext/pdo_pgsql/pgsql_statement.c

index 86fc5a00baac7f52784b09172a2fc592a46f8171..787d671ae7bfb54f484a93c47824e8cdae3e3093 100644 (file)
@@ -70,6 +70,11 @@ static int pgsql_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC)
                efree(S->param_values);
                S->param_values = NULL;
        }
+       if (S->param_formats) {
+               efree(S->param_formats);
+               S->param_formats = NULL;
+       }
+
 #endif
 
        if (S->cursor_name) {