Fix close of file descriptor 66/201866/1 accepted/tizen/unified/20190321.062506 submit/tizen/20190320.104543
authorwansuyoo <wansu.yoo@samsung.com>
Wed, 20 Mar 2019 08:18:00 +0000 (17:18 +0900)
committerwansuyoo <wansu.yoo@samsung.com>
Wed, 20 Mar 2019 08:21:42 +0000 (17:21 +0900)
It's for fixing svace issue of WGID: 410087

Change-Id: I685e40ca852e441d5f5194f16078e8b8c044218d
Signed-off-by: wansuyoo <wansu.yoo@samsung.com>
src/dzl_setting.c

index 2b9b249..8696eb0 100755 (executable)
@@ -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);