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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Peter Meerwald <p.meerwald@xxxxxxxxxxxxxxxxxx>

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



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux