Revert "[coverity] 1543170 Resource leak"

This reverts commit d24bb658ec.
This commit is contained in:
Armin Novak 2024-07-04 11:55:41 +02:00
parent d3efbe004d
commit 1024a1a195

View File

@ -388,8 +388,6 @@ int UwacWindowShmAllocBuffers(UwacWindow* w, int64_t nbuffers, int64_t allocSize
wl_shm_pool_destroy(pool);
w->nbuffers += nbuffers;
munmap(data, allocbuffersize);
error_mmap:
close(fd);
return ret;