diff options
author | vdb@picaros.org <vdb@picaros.org> | 2011-09-17 18:55:47 +0200 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2011-10-04 20:18:17 -0700 |
commit | e4cddf509e1729e8ff40354275b65455111ad2bd (patch) | |
tree | e76db3b60821ef18427fb0389ce1e5d5c5b5b219 | |
parent | 53611213396479abfdce0f7752681572e0d26d78 (diff) |
Fix a rare memory leak
Signed-off-by: Servaas Vandenberghe <vdb@picaros.org>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r-- | hw/xfree86/modes/xf86Crtc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c index c2814d4cd..3fae039ed 100644 --- a/hw/xfree86/modes/xf86Crtc.c +++ b/hw/xfree86/modes/xf86Crtc.c @@ -133,6 +133,7 @@ xf86CrtcCreate (ScrnInfoPtr scrn, crtcs = malloc((xf86_config->num_crtc + 1) * sizeof (xf86CrtcPtr)); if (!crtcs) { + free(crtc->gamma_red); free(crtc); return NULL; } |