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
|
@ -397,12 +397,12 @@ dmxBELoadFont(ScreenPtr pScreen, FontPtr pFont)
|
||||||
"font-path-related options, see the Xdmx man page.\n");
|
"font-path-related options, see the Xdmx man page.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(goodfps);
|
||||||
if (!dmxIgnoreBadFontPaths ||
|
if (!dmxIgnoreBadFontPaths ||
|
||||||
(dmxIgnoreBadFontPaths && dmxSetFontPath(dmxScreen))) {
|
(dmxIgnoreBadFontPaths && dmxSetFontPath(dmxScreen))) {
|
||||||
/* We still have errors so return with error */
|
/* We still have errors so return with error */
|
||||||
dmxFreeFontPath(fp);
|
dmxFreeFontPath(fp);
|
||||||
XFreeFontPath(oldFontPath);
|
XFreeFontPath(oldFontPath);
|
||||||
free(goodfps);
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue