evil: fix memory leak issue in evil module
authorVivek Ellur <vivek.ellur@samsung.com>
Thu, 22 Oct 2015 19:15:30 +0000 (12:15 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Thu, 22 Oct 2015 19:15:34 +0000 (12:15 -0700)
Summary:
@Fix

Signed-off-by: Vivek Ellur <vivek.ellur@samsung.com>
Reviewers: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3217

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/evil/evil_dirent.c

index b869c13..6dcfca2 100644 (file)
@@ -89,7 +89,7 @@ DIR *opendir(char const *name)
      {
         errno = ENOMEM;
         free(tmp);
-
+        free(dir);
         return NULL;
      }
    dir->handle = FindFirstFile(wname, &dir->data);