[Mesa-dev] [PATCH 1/4] tegra: fix memory leak

Christian Gmeiner christian.gmeiner at gmail.com
Thu Aug 9 05:12:21 UTC 2018


Signed-off-by: Christian Gmeiner <christian.gmeiner at gmail.com>
---
 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 034ea271ee..361ec034de 100644
--- a/src/gallium/drivers/tegra/tegra_screen.c
+++ b/src/gallium/drivers/tegra/tegra_screen.c
@@ -198,6 +198,7 @@ static int tegra_open_render_node(void)
 
          version = drmGetVersion(fd);
          if (!version) {
+            drmFreeVersion(version);
             close(fd);
             continue;
          }
-- 
2.17.1



More information about the mesa-dev mailing list