[Skiboot] [PATCH] print-stb-container: close(fd) to clean up neatly

Stewart Smith stewart at linux.vnet.ibm.com
Wed Oct 26 18:10:35 AEDT 2016


Fixes: fab5418b256817e2695aa653d4840bfa5b5be53b
Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
 libstb/test/print-stb-container.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libstb/test/print-stb-container.c b/libstb/test/print-stb-container.c
index 51566c0a1694..8ce623d5ca63 100644
--- a/libstb/test/print-stb-container.c
+++ b/libstb/test/print-stb-container.c
@@ -191,6 +191,7 @@ static void display_container(char* f)
 	display_sw_sig(c.ssig);
 
 	free(container);
+	close(fd);
 }
 
 int main(int argc, char* argv[])
-- 
2.1.4



More information about the Skiboot mailing list