summaryrefslogtreecommitdiff
path: root/src/lib/evil
diff options
context:
space:
mode:
authorvivek <vivek.ellur@samsung.com>2014-12-25 21:49:22 +0100
committerCedric BAIL <cedric@osg.samsung.com>2014-12-25 21:50:24 +0100
commitcd99392df796ac4791f12a23d72dd0f34196a477 (patch)
tree1cc68206e6e5248de8b3a26526166ee1e8969109 /src/lib/evil
parent1d25d6da795c106edacd36de13978383f4b08318 (diff)
evil: fix memory leak issue in evil_dirent module.
Summary: Memory allocated to dir was not freed. so added code to free dir struct @fix Signed-off-by: vivek <vivek.ellur@samsung.com> Reviewers: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1814 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/evil')
-rw-r--r--src/lib/evil/evil_dirent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/evil/evil_dirent.c b/src/lib/evil/evil_dirent.c
index 1a0b19b83b..b869c13f86 100644
--- a/src/lib/evil/evil_dirent.c
+++ b/src/lib/evil/evil_dirent.c
@@ -74,6 +74,7 @@ DIR *opendir(char const *name)
74 if (!tmp) 74 if (!tmp)
75 { 75 {
76 errno = ENOMEM; 76 errno = ENOMEM;
77 free(dir);
77 return NULL; 78 return NULL;
78 } 79 }
79 80