diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2005-11-30 23:27:15 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2005-11-30 23:27:15 +0000 |
commit | 911355bee897abca12bcfcb4353c58a65605aed1 (patch) | |
tree | 1f0c94ea7053e842e1654418e1289a4ee0404911 /ext/pdo_pgsql/pgsql_statement.c | |
parent | de8052aa41ea8619371f9c326ef70a938c39889e (diff) | |
download | php-git-911355bee897abca12bcfcb4353c58a65605aed1.tar.gz |
Fixed memory leak
Diffstat (limited to 'ext/pdo_pgsql/pgsql_statement.c')
-rw-r--r-- | ext/pdo_pgsql/pgsql_statement.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/pdo_pgsql/pgsql_statement.c b/ext/pdo_pgsql/pgsql_statement.c index 088694b105..4e771ea5a4 100644 --- a/ext/pdo_pgsql/pgsql_statement.c +++ b/ext/pdo_pgsql/pgsql_statement.c @@ -76,7 +76,10 @@ static int pgsql_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC) efree(S->param_formats); S->param_formats = NULL; } - + if (S->query) { + efree(S->query); + S->query = NULL; + } #endif if (S->cursor_name) { |