[PATCH] scanner: Close input resource when done to prevent leak

Bryce Harrington bryce at osg.samsung.com
Fri Jun 19 15:54:55 PDT 2015


Addresses this error reported by Denis Denisov:

  [src/scanner.c:1415]: (error) Resource leak: input

Signed-off-by: Bryce Harrington <bryce at osg.samsung.com>
---
 src/scanner.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/scanner.c b/src/scanner.c
index 7d8cfb9..2843d85 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -1415,5 +1415,6 @@ int main(int argc, char *argv[])
 			break;
 	}
 
+	fclose(input);
 	return 0;
 }
-- 
1.9.1



More information about the wayland-devel mailing list