diff mbox

[3/3] freedreno: do not leak drmVersion

Message ID 1394657145-2638-3-git-send-email-emil.l.velikov@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Emil Velikov March 12, 2014, 8:45 p.m. UTC
Cc: Rob Clark <robclark@freedesktop.org>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
---
 freedreno/freedreno_device.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Rob Clark March 13, 2014, 1:01 a.m. UTC | #1
On Wed, Mar 12, 2014 at 4:45 PM, Emil Velikov <emil.l.velikov@gmail.com> wrote:
> Cc: Rob Clark <robclark@freedesktop.org>

Thanks,

Reviewed-by: Rob Clark <robdclark@gmail.com>

> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
> ---
>  freedreno/freedreno_device.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/freedreno/freedreno_device.c b/freedreno/freedreno_device.c
> index 598bdfb..c34963c 100644
> --- a/freedreno/freedreno_device.c
> +++ b/freedreno/freedreno_device.c
> @@ -98,6 +98,7 @@ struct fd_device * fd_device_new(int fd)
>                 ERROR_MSG("unknown device: %s", version->name);
>                 dev = NULL;
>         }
> +       drmFreeVersion(version);
>
>         if (!dev)
>                 return NULL;
> --
> 1.9.0
>
diff mbox

Patch

diff --git a/freedreno/freedreno_device.c b/freedreno/freedreno_device.c
index 598bdfb..c34963c 100644
--- a/freedreno/freedreno_device.c
+++ b/freedreno/freedreno_device.c
@@ -98,6 +98,7 @@  struct fd_device * fd_device_new(int fd)
 		ERROR_MSG("unknown device: %s", version->name);
 		dev = NULL;
 	}
+	drmFreeVersion(version);
 
 	if (!dev)
 		return NULL;