mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-05 19:28:03 +02:00
libdrm/nouveau: free drmVersion after we're done with it
This commit is contained in:
parent
7e744d523d
commit
61ff524373
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue