From 7f2446e7de7f8c4235164e55ad353c03f16a3c9a Mon Sep 17 00:00:00 2001 From: Yasuo Ohgaki Date: Fri, 5 Apr 2002 06:37:26 +0000 Subject: [PATCH] Fix pg_last_notice() double free. # This should be merged --- ext/pgsql/pgsql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 269a560996..0b42549a57 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -987,7 +987,7 @@ PHP_FUNCTION(pg_affected_rows) PHP_FUNCTION(pg_last_notice) { if (PGG(last_notice)) { - RETURN_STRINGL(PGG(last_notice), PGG(last_notice_len), 0); + RETURN_STRINGL(PGG(last_notice), PGG(last_notice_len), 1); } else { RETURN_FALSE; } -- 2.50.1