summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/tegra
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2018-08-10 11:51:25 +0200
committerChristian Gmeiner <christian.gmeiner@gmail.com>2018-08-31 21:45:16 +0200
commitd0b09e2dfe7e42a542d6430426c584d74a5bd66e (patch)
tree5bf842911de30efbd600094ab207be7661f0fe7d /src/gallium/drivers/tegra
parent01c0aa9f058673071f908ed775a76b4415464b5c (diff)
tegra: fix memory leak
Fixes: 1755f608f52 ("tegra: Initial support") Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'src/gallium/drivers/tegra')
-rw-r--r--src/gallium/drivers/tegra/tegra_screen.c1
1 files changed, 1 insertions, 0 deletions
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;
}