File php7-pgsql-memory-leak.patch of Package php7.11084

--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -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);
 }
 /* }}} */
 
openSUSE Build Service is sponsored by