summaryrefslogtreecommitdiff
path: root/libdrm
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2009-02-20 09:25:35 +1000
committerBen Skeggs <bskeggs@redhat.com>2009-02-20 14:11:22 +1000
commita1345338feb7af25c0a9fe02ec16c2b9cce83a9e (patch)
tree2139824f2b3a21ea914a1834ddfc035ec87cab0a /libdrm
parent18f2fcf5aa299fe3b7b56af37e7eefe78c921f61 (diff)
libdrm/nouveau: free drmVersion after we're done with it
Diffstat (limited to 'libdrm')
-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)