summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/dzl_setting.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dzl_setting.c b/src/dzl_setting.c
index 2b9b249..8696eb0 100755
--- a/src/dzl_setting.c
+++ b/src/dzl_setting.c
@@ -58,7 +58,7 @@ static int __get_info_from_json(char *file_name, container_create_info_s * conta
len = lseek(fd, 0L, SEEK_END) - 1;
if (lseek(fd, 0L, SEEK_SET) < 0) {
_E("find beginning of file returns error");
- fclose(fd);
+ close(fd);
return -1;
} else {
json_data = (char *)malloc(len + 1);