From: Vinson Lee Date: Tue, 19 Oct 2010 16:49:15 +0000 (-0700) Subject: st/xorg: Fix memory leak on error path. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a143b6d5d8e2646a7daedc2a13f2b964b89dd0ac;p=mesa.git st/xorg: Fix memory leak on error path. --- diff --git a/src/gallium/state_trackers/xorg/xorg_exa.c b/src/gallium/state_trackers/xorg/xorg_exa.c index 0e5693dc786..4b1c02bad42 100644 --- a/src/gallium/state_trackers/xorg/xorg_exa.c +++ b/src/gallium/state_trackers/xorg/xorg_exa.c @@ -1057,6 +1057,7 @@ xorg_exa_init(ScrnInfoPtr pScrn, Bool accel) out_err: xorg_exa_close(pScrn); + free(exa); return NULL; }