summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-10 23:27:24 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-11 12:47:38 +0100
commit807c8e735761a950774fe70611778bcd97b655e3 (patch)
tree06355a8157781053187ddc04f917b0be14a1c720 /src/lib/eina
parentfd48be23c2c51343b709dc78b889f93199b7ee61 (diff)
eina file - don't double unlock a lock
thanks to coverity - found this double unlock path in case of error. fix CID 1403899
Diffstat (limited to 'src/lib/eina')
-rw-r--r--src/lib/eina/eina_file.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/eina/eina_file.c b/src/lib/eina/eina_file.c
index e334bea..f4d0e72 100644
--- a/src/lib/eina/eina_file.c
+++ b/src/lib/eina/eina_file.c
@@ -846,10 +846,7 @@ eina_file_open(const char *path, Eina_Bool shared)
846 { 846 {
847 n = malloc(sizeof(Eina_File)); 847 n = malloc(sizeof(Eina_File));
848 if (!n) 848 if (!n)
849 { 849 goto on_error;
850 eina_lock_release(&_eina_file_lock_cache);
851 goto on_error;
852 }
853 850
854 memset(n, 0, sizeof(Eina_File)); 851 memset(n, 0, sizeof(Eina_File));
855 n->filename = filename; 852 n->filename = filename;