devilhorns pushed a commit to branch master.

commit 1054d49941175415cb98d23973e9339ea145e953
Author: Chris Michael <[email protected]>
Date:   Mon Jul 8 14:20:22 2013 +0100

    Fix missing unlock reported by Coverity
    
    NB: Fixes Coverity CID1039384
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/lib/eet/eet_lib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/eet/eet_lib.c b/src/lib/eet/eet_lib.c
index efbad79..a8d507e 100644
--- a/src/lib/eet/eet_lib.c
+++ b/src/lib/eet/eet_lib.c
@@ -2092,7 +2092,7 @@ eet_alias_get(Eet_File   *ef,
    /* get size (uncompressed, if compressed at all) */
    size = efn->data_size;
 
-   if (!efn->alias) return NULL;
+   if (!efn->alias) goto on_error;
    data = efn->data ? efn->data : ef->data + efn->offset;
 
    /* handle alias case */

-- 

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

Build for Windows Store.

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

Reply via email to