Use free() instead of PQfreemem() to maintain compabitibility with older

PostgreSQL client libraries (bug #33813).
This commit is contained in:
Edin Kadribasic 2005-08-16 09:55:44 +00:00
parent 81b6d3e725
commit d327027ea9

View File

@ -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