summaryrefslogtreecommitdiff
path: root/src/lib/eet/eet_lib.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2013-07-08 14:18:06 +0100
committerChris Michael <cp.michael@samsung.com>2013-07-08 14:18:06 +0100
commit3891bdcb15455e4482b75cb0d60d8e69e101d1c2 (patch)
tree60f6504af8ff33163247772fef8b48cc6ba96bc0 /src/lib/eet/eet_lib.c
parenta9d0f3a9198bd1bcd8ae415f585c2ca30335231d (diff)
Fix missing unlock (reported by Coverity).
- Instead of just returning NULL, use the existing goto on_error to handle the unlock and return NULL. NB: Fixes Coverity CID1039383 Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/eet/eet_lib.c')
-rw-r--r--src/lib/eet/eet_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eet/eet_lib.c b/src/lib/eet/eet_lib.c
index c9d5cb0373..efbad79267 100644
--- a/src/lib/eet/eet_lib.c
+++ b/src/lib/eet/eet_lib.c
@@ -1444,7 +1444,7 @@ eet_mmap(Eina_File *file)
1444 1444
1445 /* Allocate struct for eet file and have it zero'd out */ 1445 /* Allocate struct for eet file and have it zero'd out */
1446 ef = eet_file_malloc(1); 1446 ef = eet_file_malloc(1);
1447 if (!ef) return NULL; 1447 if (!ef) goto on_error;
1448 1448
1449 /* fill some of the members */ 1449 /* fill some of the members */
1450 INIT_FILE(ef); 1450 INIT_FILE(ef);