From 1024a1a195f4e7437e0cfaa86f1f5513e5af9d8f Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 4 Jul 2024 11:55:41 +0200 Subject: [PATCH] Revert "[coverity] 1543170 Resource leak" This reverts commit d24bb658ec3326f52a9364e1c4e6bc78e7bc104c. --- uwac/libuwac/uwac-window.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/uwac/libuwac/uwac-window.c b/uwac/libuwac/uwac-window.c index ce97e029c..f8f355b95 100644 --- a/uwac/libuwac/uwac-window.c +++ b/uwac/libuwac/uwac-window.c @@ -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;