mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[coverity] 1543170 Resource leak
This commit is contained in:
committed by
Martin Fleisz
parent
3a76eccf16
commit
d24bb658ec
@@ -379,6 +379,8 @@ int UwacWindowShmAllocBuffers(UwacWindow* w, int nbuffers, int allocSize, uint32
|
||||
|
||||
wl_shm_pool_destroy(pool);
|
||||
w->nbuffers += nbuffers;
|
||||
munmap(data, 1ull * allocSize * nbuffers);
|
||||
|
||||
error_mmap:
|
||||
close(fd);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user