st/xorg: Fix memory leak on error path.
authorVinson Lee <vlee@vmware.com>
Tue, 19 Oct 2010 16:49:15 +0000 (09:49 -0700)
committerVinson Lee <vlee@vmware.com>
Tue, 19 Oct 2010 16:49:15 +0000 (09:49 -0700)
src/gallium/state_trackers/xorg/xorg_exa.c

index 0e5693dc786129a5d11af92bcbe390fc49cd0dc7..4b1c02bad42e323175185837ac1a4b573f08d7b9 100644 (file)
@@ -1057,6 +1057,7 @@ xorg_exa_init(ScrnInfoPtr pScrn, Bool accel)
 
 out_err:
    xorg_exa_close(pScrn);
+   free(exa);
 
    return NULL;
 }