summaryrefslogtreecommitdiff
path: root/ext/pdo_pgsql/pgsql_driver.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2006-11-29 15:45:59 +0000
committerIlia Alshanetsky <iliaa@php.net>2006-11-29 15:45:59 +0000
commitbfa4af46e1ac3d980efbd057f95e8793a2025559 (patch)
treec3e8f32eb486ad101f3180076198bd1129892f83 /ext/pdo_pgsql/pgsql_driver.c
parent60bb49460729d199a512bbe3bbb26ca143a6a0f2 (diff)
downloadphp-git-bfa4af46e1ac3d980efbd057f95e8793a2025559.tar.gz
Fixed bug #39663 (Memory leak in pg_get_notify() and a possible memory
corruption on Windows in pgsql and pdo_pgsql extensions).
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 2e672ba040..6adb2efdf9 100644
--- a/ext/pdo_pgsql/pgsql_driver.c
+++ b/ext/pdo_pgsql/pgsql_driver.c
@@ -325,7 +325,7 @@ static int pgsql_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquote
(*quoted)[0] = '\'';
(*quoted)[*quotedlen-1] = '\'';
(*quoted)[*quotedlen] = '\0';
- free(escaped);
+ PQfreemem(escaped);
break;
default:
*quoted = safe_emalloc(2, unquotedlen, 3);