From 0783399d796823fbefaab7af5551d0df90bd9dac Mon Sep 17 00:00:00 2001 From: Jan Vesely Date: Mon, 7 May 2018 23:40:47 -0400 Subject: [PATCH] pipe-loader: Free driver_name in error path MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit CC: Signed-off-by: Jan Vesely Reviewed-by: Marek Olšák --- src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.30.2