mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Use free() instead of PQfreemem() to maintain compabitibility with older
PostgreSQL client libraries (bug #33813).
This commit is contained in:
parent
81b6d3e725
commit
d327027ea9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user