mirror of
https://github.com/opnsense/src.git
synced 2026-04-21 06:07:31 -04:00
drm: fix memory leak on error path
Reported by: Coverity CID: 1368753 MFC after: 3 days Sponsored by: Dell EMC
This commit is contained in:
parent
0155aa938e
commit
f5136f7ecc
1 changed files with 1 additions and 0 deletions
|
|
@ -105,6 +105,7 @@ int drm_setunique(struct drm_device *dev, void *data,
|
|||
DRM_LOCK();
|
||||
if (dev->unique_len || dev->unique) {
|
||||
DRM_UNLOCK();
|
||||
free(busid, DRM_MEM_DRIVER);
|
||||
return EBUSY;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue