cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=cd99392df796ac4791f12a23d72dd0f34196a477

commit cd99392df796ac4791f12a23d72dd0f34196a477
Author: vivek <[email protected]>
Date:   Thu Dec 25 21:49:22 2014 +0100

    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 <[email protected]>
    
    Reviewers: devilhorns
    
    Subscribers: cedric
    
    Differential Revision: https://phab.enlightenment.org/D1814
    
    Signed-off-by: Cedric BAIL <[email protected]>
---
 src/lib/evil/evil_dirent.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/evil/evil_dirent.c b/src/lib/evil/evil_dirent.c
index 1a0b19b..b869c13 100644
--- a/src/lib/evil/evil_dirent.c
+++ b/src/lib/evil/evil_dirent.c
@@ -74,6 +74,7 @@ DIR *opendir(char const *name)
    if (!tmp)
      {
         errno = ENOMEM;
+        free(dir);
         return NULL;
      }
 

-- 


Reply via email to