[coverity] 1543170 Resource leak

This commit is contained in:
akallabeth 2024-04-11 13:04:40 +02:00 committed by Martin Fleisz
parent 3a76eccf16
commit d24bb658ec

View File

@ -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;