From: Jan Vesely Date: Tue, 8 May 2018 03:40:47 +0000 (-0400) Subject: pipe-loader: Free driver_name in error path X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0783399d796823fbefaab7af5551d0df90bd9dac;p=mesa.git pipe-loader: Free driver_name in error path CC: Signed-off-by: Jan Vesely Reviewed-by: Marek Olšák --- diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c index b6be1b4f127..3b959e53981 100644 --- a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c +++ b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c @@ -207,6 +207,7 @@ pipe_loader_drm_probe_fd(struct pipe_loader_device **dev, int fd) if (ddev->lib) util_dl_close(ddev->lib); #endif + FREE(ddev->base.driver_name); FREE(ddev); return false; }