Skip to content

Commit e6afa64

Browse files
msLoadFontSet(): fix memleak in error code path (#6675)
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=52123
1 parent 575ca34 commit e6afa64

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

maplabel.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,7 @@ int msLoadFontSet(fontSetObj *fontset, mapObj *map)
813813
if(!stream) {
814814
msSetError(MS_IOERR, "Error opening fontset %s.", "msLoadFontset()",
815815
fontset->filename);
816+
free(path);
816817
return(-1);
817818
}
818819

0 commit comments

Comments
 (0)