mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-28 06:20:08 +01:00
dmx: Fix memory leak in dmxBELoadFont (#50281)
Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
3dba171f5e
commit
dff1f5e1a9
1 changed files with 1 additions and 1 deletions
|
|
@ -397,12 +397,12 @@ dmxBELoadFont(ScreenPtr pScreen, FontPtr pFont)
|
|||
"font-path-related options, see the Xdmx man page.\n");
|
||||
}
|
||||
|
||||
free(goodfps);
|
||||
if (!dmxIgnoreBadFontPaths ||
|
||||
(dmxIgnoreBadFontPaths && dmxSetFontPath(dmxScreen))) {
|
||||
/* We still have errors so return with error */
|
||||
dmxFreeFontPath(fp);
|
||||
XFreeFontPath(oldFontPath);
|
||||
free(goodfps);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue