libdrm/nouveau: free drmVersion after we're done with it
parent
18f2fcf5aa
commit
a1345338fe
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue