libdrm/nouveau: free drmVersion after we're done with it

main
Ben Skeggs 2009-02-20 09:25:35 +10:00
parent 18f2fcf5aa
commit a1345338fe
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ nouveau_device_open_existing(struct nouveau_device **dev, int close,
ver = drmGetVersion(fd); ver = drmGetVersion(fd);
if (!ver || ver->version_patchlevel != NOUVEAU_DRM_HEADER_PATCHLEVEL) if (!ver || ver->version_patchlevel != NOUVEAU_DRM_HEADER_PATCHLEVEL)
return -EINVAL; return -EINVAL;
drmFreeVersion(ver);
nvdev = calloc(1, sizeof(*nvdev)); nvdev = calloc(1, sizeof(*nvdev));
if (!nvdev) if (!nvdev)