tegra: fix memory leak
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 10 Aug 2018 09:51:25 +0000 (11:51 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 31 Aug 2018 19:45:16 +0000 (21:45 +0200)
Fixes: 1755f608f52 ("tegra: Initial support")
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/gallium/drivers/tegra/tegra_screen.c

index 034ea271eecaead92b26ce37d10c9b0654b64714..73fdc632933f27ebb76d0fa9e0750d83bcb10c7f 100644 (file)
@@ -203,6 +203,7 @@ static int tegra_open_render_node(void)
          }
 
          if (strcmp(version->name, "nouveau") != 0) {
+            drmFreeVersion(version);
             close(fd);
             continue;
          }