commit | 9b5869f35f2fadd5a3b5402df87c594556372d95 | [log] [tgz] |
---|---|---|
author | Andrew Davies <awdavies@google.com> | Wed Nov 18 16:01:20 2015 -0800 |
committer | Andrew Davies <awdavies@google.com> | Thu Nov 19 00:49:54 2015 +0000 |
tree | 396661c8392817027b3449209ca29eaad7660e77 | |
parent | c6ec7595ac76d233998ef095630084a3143e5b99 [diff] |
wifi_files: Fix file descriptor leak b/25661479 Change-Id: Ib2da312f59bea93ef5b4e7de8563c8089c360760
diff --git a/cmds/wifi_files.c b/cmds/wifi_files.c index b25e573..1d95683 100644 --- a/cmds/wifi_files.c +++ b/cmds/wifi_files.c
@@ -609,6 +609,8 @@ char buf[24]; if (fgets(buf, sizeof(buf), fptr) != NULL) fprintf(wifi_show_handle, " \"AutoType\": \"%s\"\n", buf); + fclose(fptr); + fptr = NULL; } fprintf(wifi_show_handle, "}\n");