projects
/
php
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
645b037
)
Fix PDO pgsql memory leak with scrollable cursors
author
Nikita Popov
<nikita.ppv@gmail.com>
Mon, 9 Sep 2019 08:50:10 +0000
(10:50 +0200)
committer
Nikita Popov
<nikita.ppv@gmail.com>
Mon, 9 Sep 2019 08:50:10 +0000
(10:50 +0200)
ext/pdo_pgsql/pgsql_statement.c
patch
|
blob
|
history
diff --git
a/ext/pdo_pgsql/pgsql_statement.c
b/ext/pdo_pgsql/pgsql_statement.c
index a07c8117ca5fa01e6d9e12fd6edba948a7e16ca0..d830d57c1839bb665bc47bcddbbe5f57f25e7790 100644
(file)
--- a/
ext/pdo_pgsql/pgsql_statement.c
+++ b/
ext/pdo_pgsql/pgsql_statement.c
@@
-149,7
+149,7
@@
static int pgsql_stmt_execute(pdo_stmt_t *stmt)
if (S->is_prepared) {
spprintf(&q, 0, "CLOSE %s", S->cursor_name);
-
S->result = PQexec(H->server, q
);
+
PQclear(PQexec(H->server, q)
);
efree(q);
}