From d0b09e2dfe7e42a542d6430426c584d74a5bd66e Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Fri, 10 Aug 2018 11:51:25 +0200 Subject: [PATCH] tegra: fix memory leak Fixes: 1755f608f52 ("tegra: Initial support") Signed-off-by: Christian Gmeiner Reviewed-by: Emil Velikov --- src/gallium/drivers/tegra/tegra_screen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/tegra/tegra_screen.c b/src/gallium/drivers/tegra/tegra_screen.c index 034ea271eec..73fdc632933 100644 --- a/src/gallium/drivers/tegra/tegra_screen.c +++ b/src/gallium/drivers/tegra/tegra_screen.c @@ -203,6 +203,7 @@ static int tegra_open_render_node(void) } if (strcmp(version->name, "nouveau") != 0) { + drmFreeVersion(version); close(fd); continue; } -- 2.30.2