devilhorns pushed a commit to branch master.

commit b72e694573985997ad4b83a882b71c6d5cb3cb42
Author: Chris Michael <[email protected]>
Date:   Mon Jul 8 11:31:17 2013 +0100

    Fix memleak reported by Coverity
    
    NB: Fixes Coverity CID1039261
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/lib/eet/eet_lib.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/lib/eet/eet_lib.c b/src/lib/eet/eet_lib.c
index b00324f..c9d5cb0 100644
--- a/src/lib/eet/eet_lib.c
+++ b/src/lib/eet/eet_lib.c
@@ -2128,7 +2128,10 @@ eet_alias_get(Eet_File   *ef,
           }
         
         if (tmp[compr_size - 1] != '\0')
-          goto on_error;
+          {
+             free(tmp);
+             goto on_error;
+          }
 
         UNLOCK_FILE(ef);
 

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to