[Mesa-dev] [PATCH] glx/drisw: fix memory leak when destroying screen.
Brian Paul
brianp at vmware.com
Wed Apr 30 16:29:21 PDT 2014
On 04/30/2014 05:04 PM, sroland at vmware.com wrote:
> From: Roland Scheidegger <sroland at vmware.com>
>
> ---
> src/glx/drisw_glx.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c
> index 751626b..5885b66 100644
> --- a/src/glx/drisw_glx.c
> +++ b/src/glx/drisw_glx.c
> @@ -619,6 +619,7 @@ driswDestroyScreen(struct glx_screen *base)
> psc->driScreen = NULL;
> if (psc->driver)
> dlclose(psc->driver);
> + free(psc);
> }
>
> #define SWRAST_DRIVER_NAME "swrast"
>
Reviewed-by: Brian Paul <brianp at vmware.com>
More information about the mesa-dev
mailing list