From: Moriyoshi Koizumi Date: Tue, 14 Jan 2003 01:27:57 +0000 (+0000) Subject: Fixed small memory leak that occurs when the invalid line length is passed X-Git-Tag: PHP_5_0_dev_before_13561_fix~256 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a0be48c109b5b941c56282adb1bcdb53999c8e29;p=php Fixed small memory leak that occurs when the invalid line length is passed to the qprint ctor. --- 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; }