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
parent
ee8c9a1383
commit
230389a0d7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue