diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2009-02-20 09:25:35 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2009-02-20 14:11:22 +1000 |
commit | a1345338feb7af25c0a9fe02ec16c2b9cce83a9e (patch) | |
tree | 2139824f2b3a21ea914a1834ddfc035ec87cab0a | |
parent | 18f2fcf5aa299fe3b7b56af37e7eefe78c921f61 (diff) |
libdrm/nouveau: free drmVersion after we're done with it
-rw-r--r-- | libdrm/nouveau/nouveau_device.c | 1 |
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) |