- Fixed possible memory leak in finfo_open()

This commit is contained in:
Felipe Pena 2011-11-22 15:04:19 +00:00
parent 38dd904a46
commit 39d0c5e202
2 changed files with 4 additions and 1 deletions

3
NEWS
View File

@ -31,6 +31,9 @@ PHP NEWS
- BCmath:
. Fixed bug #60377 (bcscale related crashes on 64bits platforms) (shm)
- Fileinfo:
. Fixed possible memory leak in finfo_open(). (Felipe)
- Intl:
. Fixed memory leak in several Intl locale functions. (Felipe)

View File

@ -2137,7 +2137,7 @@ error1:
php_stream_close(stream);
}
if (mm && ret == 1) {
if (mm) {
efree(mm);
} else {
*magicp = NULL;