summaryrefslogtreecommitdiff
path: root/ext/pdo_pgsql
diff options
context:
space:
mode:
authorEdin Kadribasic <edink@php.net>2004-05-26 17:45:03 +0000
committerEdin Kadribasic <edink@php.net>2004-05-26 17:45:03 +0000
commit9cc4fb18b6a7e3652c8a6de073430a6f6f3f70b3 (patch)
treec29734d31a995539132c6a0eea4d7e1ae0edfcf4 /ext/pdo_pgsql
parent429bce651962a867dab4f51a49fd45fdb3cd9452 (diff)
downloadphp-git-9cc4fb18b6a7e3652c8a6de073430a6f6f3f70b3.tar.gz
PQfreemem() is only available in 7.4
Diffstat (limited to 'ext/pdo_pgsql')
-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 359f394d61..063c34ed61 100644
--- a/ext/pdo_pgsql/pgsql_driver.c
+++ b/ext/pdo_pgsql/pgsql_driver.c
@@ -146,7 +146,7 @@ static int pgsql_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquote
(*quoted)[0] = '\'';
(*quoted)[*quotedlen-1] = '\'';
(*quoted)[*quotedlen] = '\0';
- PQfreemem(escaped);
+ free(escaped);
return 1;
}