diff options
author | Adam Jackson <ajax@redhat.com> | 2014-04-30 13:49:05 -0400 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-05-22 17:13:34 -0700 |
commit | dff1f5e1a9608eda2992fc9e3304edee7b5bee9b (patch) | |
tree | f6091e3e187aaf74cdc0daa9bdc03a520828109b | |
parent | 3dba171f5e82101aa8ea2e47d2253c3410907f6a (diff) |
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>
-rw-r--r-- | hw/dmx/dmxfont.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/dmx/dmxfont.c b/hw/dmx/dmxfont.c index 6b81826c9..115422d41 100644 --- a/hw/dmx/dmxfont.c +++ b/hw/dmx/dmxfont.c @@ -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; } } |