[pulseaudio-discuss] [PATCH v2 14/19] tests: Fix resource leak in sigbus-test

Peter Meerwald pmeerw at pmeerw.net
Thu Dec 19 03:11:43 PST 2013


From: Peter Meerwald <p.meerwald at bct-electronic.com>

Signed-off-by: Peter Meerwald <pmeerw at pmeerw.net>
---
 src/tests/sigbus-test.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/tests/sigbus-test.c b/src/tests/sigbus-test.c
index e5815e5..c48df8a 100644
--- a/src/tests/sigbus-test.c
+++ b/src/tests/sigbus-test.c
@@ -67,6 +67,7 @@ START_TEST (sigbus_test) {
 
     pa_memtrap_remove(m);
     munmap(p, PA_PAGE_SIZE);
+    close(fd);
 }
 END_TEST
 
-- 
1.7.9.5



More information about the pulseaudio-discuss mailing list