mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-08 11:38:13 +02:00
libdrm/nouveau: free drmVersion after we're done with it
This commit is contained in:
parent
18f2fcf5aa
commit
a1345338fe
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