From a0be48c109b5b941c56282adb1bcdb53999c8e29 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Tue, 14 Jan 2003 01:27:57 +0000 Subject: [PATCH] Fixed small memory leak that occurs when the invalid line length is passed to the qprint ctor. --- ext/standard/filters.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/standard/filters.c b/ext/standard/filters.c index f94b461f7c..d85c70997d 100644 --- a/ext/standard/filters.c +++ b/ext/standard/filters.c @@ -1265,6 +1265,9 @@ out_failure: php_conv_dtor(read_cd); pefree(read_cd, persistent); } + if (inst->filtername != NULL) { + pefree(inst->filtername, persistent); + } return FAILURE; } -- 2.50.1