[Mesa-dev] [PATCH mesa v2] gbm/dri: fix memory leaks in error path

Emil Velikov emil.l.velikov at gmail.com
Fri Jan 27 17:58:40 UTC 2017


On 27 January 2017 at 17:29, Eric Engestrom <eric.engestrom at imgtec.com> wrote:
> Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
> ---
> v2: add another missing destroy (Emil)
> ---
>  src/gbm/backends/dri/gbm_dri.c | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
> index 45cb42a862..90587791d8 100644
> --- a/src/gbm/backends/dri/gbm_dri.c
> +++ b/src/gbm/backends/dri/gbm_dri.c
> @@ -695,6 +695,7 @@ gbm_dri_bo_import(struct gbm_device *gbm,
>           gbm_format = GBM_FORMAT_YUYV;
>           break;
>        default:
> +         dri->image->destroyImage(bo->image);
s/bo->// r-b and pushed to master.

Skimming through git log you've got 50+ patches, so you're definitely
covered the requirements for commit access [1]

Thanks
Emil
[1] https://www.freedesktop.org/wiki/AccountRequests/


More information about the mesa-dev mailing list