diff options
| author | Xinchen Hui <laruence@gmail.com> | 2018-01-18 10:54:16 +0800 |
|---|---|---|
| committer | Xinchen Hui <laruence@gmail.com> | 2018-01-18 10:54:16 +0800 |
| commit | 1e4deadc5b4317d15b928b5165be63d106905b75 (patch) | |
| tree | 5569d691a16713865efb9f66d65d7d1db49db182 /ext/pgsql/pgsql.c | |
| parent | 1613b6a06b032cafdcb3fe13abc0f70c938fe14a (diff) | |
| parent | 2dc1cd1154f5b25a7b43d75e2b352c46e8fb4b78 (diff) | |
| download | php-git-1e4deadc5b4317d15b928b5165be63d106905b75.tar.gz | |
Merge branch 'PHP-7.2'
* PHP-7.2:
Updated NEWS
Fixed #75838 (Memory leak in pg_escape_bytea())
Diffstat (limited to 'ext/pgsql/pgsql.c')
| -rw-r--r-- | ext/pgsql/pgsql.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index ee7a9b4c59..e63431c524 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -4433,6 +4433,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); } /* }}} */ |
