summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdrm/nouveau/nouveau_device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libdrm/nouveau/nouveau_device.c b/libdrm/nouveau/nouveau_device.c
index 9d730395..b5ac8546 100644
--- a/libdrm/nouveau/nouveau_device.c
+++ b/libdrm/nouveau/nouveau_device.c
@@ -45,6 +45,7 @@ nouveau_device_open_existing(struct nouveau_device **dev, int close,
ver = drmGetVersion(fd);
if (!ver || ver->version_patchlevel != NOUVEAU_DRM_HEADER_PATCHLEVEL)
return -EINVAL;
+ drmFreeVersion(ver);
nvdev = calloc(1, sizeof(*nvdev));
if (!nvdev)