[coverity] 1543170 Resource leak
This commit is contained in:
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;
|
||||
|
Loading…
Reference in New Issue
Block a user