summaryrefslogtreecommitdiff
path: root/freedreno
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2014-03-12 20:45:45 +0000
committerRob Clark <robclark@freedesktop.org>2014-03-16 10:46:25 -0400
commit230389a0d7b712f8ad0bab6edaacd8988e64d76b (patch)
tree326dc105577ab6c60b4406d81606678a5269245e /freedreno
parentee8c9a1383d4a50871e146ade2fe15b25f3377d4 (diff)
freedreno: do not leak drmVersion
Cc: Rob Clark <robclark@freedesktop.org> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Rob Clark <robclark@freedesktop.org>
Diffstat (limited to 'freedreno')
-rw-r--r--freedreno/freedreno_device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/freedreno/freedreno_device.c b/freedreno/freedreno_device.c
index 598bdfbc..c34963ce 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;