EP-E9D7571734A347E2ADA07C4134AB97EA

Hi,

Package: busybox
Version: v1.24.0.git
Severity: wishlist

This patch fixes a samll resource leak- Missing fclose after fopen. 

Signed-off-by: Akhilesh Kumar <[email protected]>
Signed-off-by: Maninder Singh <[email protected]>
---
 applets/applet_tables.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/applets/applet_tables.c b/applets/applet_tables.c
index 92bf1e4..b2f9023 100644
--- a/applets/applet_tables.c
+++ b/applets/applet_tables.c
@@ -167,6 +167,7 @@ int main(int argc, char **argv)
                        if (!fp)
                                return 1;
                        fputs(line_new, fp);
+                       fclose(fp);
                }
        }
 
-- 
1.7.1


Thanks
Maninder Singh
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to