Skip to content

Commit 91aa340

Browse files
Joshua Rogersweltling
Joshua Rogers
authored andcommitted
Fixed bug #68827 Double free with disabled ZMM
1 parent 251745c commit 91aa340

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ PHP NEWS
1010
- Dba:
1111
. Fixed bug #68711 (useless comparisons). (bugreports at internot dot info)
1212

13+
- Fileinfo:
14+
. Fixed bug #68827 (Double free with disabled ZMM). (Joshua Rogers)
15+
1316
- OpenSSL:
1417
. Fixed bug #55618 (use case-insensitive cert name matching).
1518
(Daniel Lowrey)

ext/fileinfo/libmagic/apprentice.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2603,8 +2603,7 @@ apprentice_map(struct magic_set *ms, const char *fn)
26032603

26042604
if ((map = CAST(struct magic_map *, ecalloc(1, sizeof(*map)))) == NULL) {
26052605
file_oomem(ms, sizeof(*map));
2606-
efree(map);
2607-
goto error;
2606+
return NULL;
26082607
}
26092608

26102609
if (fn == NULL) {

0 commit comments

Comments
 (0)