Fix resource leak 43/233143/1
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 12 May 2020 11:23:45 +0000 (20:23 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 12 May 2020 11:23:45 +0000 (20:23 +0900)
Change-Id: I7726c44d3212c78de6fb2134793e006aa89bf2e5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
tool/widget-mgr.c

index 9719011..b3293e2 100644 (file)
@@ -499,6 +499,7 @@ static int __get_image_count(const char *path)
                if (ext && strcmp(ext, ".jpg") == 0)
                        count++;
        }
+       closedir(dp);
 
        return count;
 }