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);
|
||||
if (!ver || ver->version_patchlevel != NOUVEAU_DRM_HEADER_PATCHLEVEL)
|
||||
return -EINVAL;
|
||||
drmFreeVersion(ver);
|
||||
|
||||
nvdev = calloc(1, sizeof(*nvdev));
|
||||
if (!nvdev)
|
||||
|
|
Loading…
Reference in New Issue