diff options
author | vdb@picaros.org <vdb@picaros.org> | 2011-09-17 18:55:47 +0200 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2011-10-09 01:36:01 -0700 |
commit | 65469f5ea98074ab27ce0a2d482157b9d5c2cbc7 (patch) | |
tree | 66bcfaedf56705b7f10d2a996dfe0708bc060af9 | |
parent | bec15eb73a17fb47963ff6b747ea504f7dc05deb (diff) |
Fix a rare memory leak
Signed-off-by: Servaas Vandenberghe <vdb@picaros.org>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
(cherry picked from commit e4cddf509e1729e8ff40354275b65455111ad2bd)
-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; } |