From d327027ea936598768ef583593652220d62db781 Mon Sep 17 00:00:00 2001 From: Edin Kadribasic Date: Tue, 16 Aug 2005 09:55:44 +0000 Subject: [PATCH] Use free() instead of PQfreemem() to maintain compabitibility with older PostgreSQL client libraries (bug #33813). --- ext/pgsql/pgsql.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 4210f14b571..bcd49ab1be6 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -3251,7 +3251,7 @@ PHP_FUNCTION(pg_copy_to) break; default: add_next_index_string(return_value, csv, 1); - PQfreemem(csv); + free(csv); break; } } @@ -3598,7 +3598,7 @@ PHP_FUNCTION(pg_unescape_bytea) #if HAVE_PQUNESCAPEBYTEA tmp = (char *)PQunescapeBytea((unsigned char*)from, &to_len); to = estrndup(tmp, to_len); - PQfreemem(tmp); + free(tmp); #else to = (char *)php_pgsql_unescape_bytea((unsigned char*)from, &to_len); #endif