summaryrefslogtreecommitdiff
path: root/ext/pdo_pgsql/pgsql_driver.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-12-01 16:33:01 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-12-01 16:33:01 +0000
commit4e03ce9fc51335903479c8beefbf3598ae7b8adb (patch)
tree8684cf28d1f61d0fd82c4c1890516b6d576807b6 /ext/pdo_pgsql/pgsql_driver.c
parentf4248e51a41b40cb3c661ff0fc992e38d44a38e7 (diff)
downloadphp-git-4e03ce9fc51335903479c8beefbf3598ae7b8adb.tar.gz
Fixed memory leaks
Diffstat (limited to 'ext/pdo_pgsql/pgsql_driver.c')
-rw-r--r--ext/pdo_pgsql/pgsql_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_pgsql/pgsql_driver.c b/ext/pdo_pgsql/pgsql_driver.c
index 67042c5e05..65fb948675 100644
--- a/ext/pdo_pgsql/pgsql_driver.c
+++ b/ext/pdo_pgsql/pgsql_driver.c
@@ -248,7 +248,7 @@ static int pgsql_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len,
/* that's all for now; we'll defer the actual prepare until the first execute call */
if (nsql) {
- S->query = estrdup(nsql);
+ S->query = nsql;
} else {
S->query = estrdup(sql);
}