From: Pierre Joye Date: Mon, 1 May 2006 17:14:40 +0000 (+0000) Subject: - fix possible leak, when orig_array_ptr is null X-Git-Tag: BEFORE_NEW_OUTPUT_API~338 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fdeb6ba9046fda9f3d644d6661a726c0f2daa0f9;p=php - fix possible leak, when orig_array_ptr is null --- diff --git a/ext/filter/filter.c b/ext/filter/filter.c index dc0708b221..07561163a1 100644 --- a/ext/filter/filter.c +++ b/ext/filter/filter.c @@ -374,6 +374,8 @@ static unsigned int php_sapi_filter(int arg, char *var, char **val, unsigned int if (orig_array_ptr) { php_register_variable_ex(orig_var, &new_var, orig_array_ptr TSRMLS_CC); + } + if (array_ptr) { efree(orig_var); }