raster pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=569146ed6ae221ef282dca3d947096d719503081
commit 569146ed6ae221ef282dca3d947096d719503081 Author: Carsten Haitzler (Rasterman) <[email protected]> Date: Sun Apr 19 01:10:55 2020 +0100 shot - handle error path and don't double close fd fix CID 1425213 --- src/modules/shot/e_mod_save.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/modules/shot/e_mod_save.c b/src/modules/shot/e_mod_save.c index c7f966f63..fd2f4fbf1 100644 --- a/src/modules/shot/e_mod_save.c +++ b/src/modules/shot/e_mod_save.c @@ -158,10 +158,7 @@ save_to(const char *file) } } else - { - close(fd); - free(data); - } + free(data); } if (!thdat) close(fd); eina_tmpstr_del(path); --
