From: Christian Gmeiner Date: Fri, 10 Aug 2018 09:51:25 +0000 (+0200) Subject: tegra: fix memory leak X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d0b09e2dfe7e42a542d6430426c584d74a5bd66e;p=mesa.git tegra: fix memory leak Fixes: 1755f608f52 ("tegra: Initial support") Signed-off-by: Christian Gmeiner Reviewed-by: Emil Velikov --- 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; }