[php-src] PR #15046: Fix memory leaks in ext/tidy basedir restriction code
| From: | nielsdos | Date: | Sat, 20 Jul 2024 22:40:00 +0000 |
| Subject: | [php-src] PR #15046: Fix memory leaks in ext/tidy basedir restriction code | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-27394@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15046
Author: nielsdos
TIDY_APPLY_CONFIG can early return because it's a macro, but then the cleanup paths are not
executed. Transform this to a real function and handle the cleanups correctly at the callsites.
This was detected using an experimental static analyser I'm developing.