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>
main
Emil Velikov 2014-03-12 20:45:45 +00:00 committed by Rob Clark
parent ee8c9a1383
commit 230389a0d7
1 changed files with 1 additions and 0 deletions

View File

@ -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;