[php-src] PR #14862: Fix memory leak in tidy_repair_file()
| From: | nielsdos | Date: | Sun, 07 Jul 2024 19:54:49 +0000 |
| Subject: | [php-src] PR #14862: Fix memory leak in tidy_repair_file() | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-27113@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/14862
Author: nielsdos
When dealing with a file, we must free the contents if the function fails. While here, also fix the
error message because previously it sounded like the filename was too long while in fact the file
itself is too large.
Detected with an experimental static analyser I'm working on.