Fixed #75838 (Memory leak in pg_escape_bytea())

This commit is contained in:
Xinchen Hui 2018-01-18 10:53:23 +08:00
parent 043d53c789
commit fb205020ce
2 changed files with 3 additions and 1 deletions

3
NEWS
View file

@ -2,7 +2,8 @@ PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 2018, PHP 7.1.15
- PGSQL:
. Fixed #75838 (Memory leak in pg_escape_bytea()). (ard_1 at mail dot ru)
01 Feb 2018, PHP 7.1.14

View file

@ -4442,6 +4442,7 @@ PHP_FUNCTION(pg_escape_bytea)
to = (char *)PQescapeBytea((unsigned char*)from, from_len, &to_len);
RETVAL_STRINGL(to, to_len-1); /* to_len includes additional '\0' */
PQfreemem(to);
}
/* }}} */