]> granicus.if.org Git - php/commitdiff
- fix possible leak, when orig_array_ptr is null
authorPierre Joye <pajoye@php.net>
Mon, 1 May 2006 17:14:40 +0000 (17:14 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 1 May 2006 17:14:40 +0000 (17:14 +0000)
ext/filter/filter.c

index dc0708b221bfcc6b2b5e5a208a0b3da6be6f9b1e..07561163a119522e2db52b027c8199fa07e5d2cf 100644 (file)
@@ -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);
        }