From: Edin Kadribasic Date: Tue, 16 Aug 2005 09:55:44 +0000 (+0000) Subject: Use free() instead of PQfreemem() to maintain compabitibility with older X-Git-Tag: php-5.1.0RC1~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d327027ea936598768ef583593652220d62db781;p=php Use free() instead of PQfreemem() to maintain compabitibility with older PostgreSQL client libraries (bug #33813). --- diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 4210f14b57..bcd49ab1be 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