php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #75838
Patch pg_escape_bytea.diff revision 2018-01-17 23:41 UTC by ard_1 at mail dot ru

Patch pg_escape_bytea.diff for PostgreSQL related Bug #75838

Patch version 2018-01-17 23:41 UTC

Return to Bug #75838 | Download this patch
Patch Revisions:

Developer: ard_1@mail.ru

--- pgsql.c.orig	2018-01-18 02:19:23.000000000 +0300
+++ pgsql.c	2018-01-18 02:25:41.595271000 +0300
@@ -4433,6 +4433,7 @@
 		to = (char *)PQescapeBytea((unsigned char*)from, from_len, &to_len);
 
 	RETVAL_STRINGL(to, to_len-1); /* to_len includes additional '\0' */
+	PQfreemem(to);
 }
 /* }}} */
 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 18:01:28 2024 UTC