scandir() allocates a memory chunk to store directory entries.
The allocated chunk should be freed after use.
This patch fixes a coverity issue (issue number: 1831352).
Change-Id: I3abfe6f709354bd7928101057908d155f128d530 Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>