On 9 August 2018 at 06:12, Christian Gmeiner
<christian.gmei...@gmail.com> wrote:
> Signed-off-by: Christian Gmeiner <christian.gmei...@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);
This should be in the next if hunk - the strcmp() call.

-Emil
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to