raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=5ac19b1372a3dc9705cae3ca56d3a7549be705df

commit 5ac19b1372a3dc9705cae3ca56d3a7549be705df
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Sat Apr 18 23:27:39 2020 +0100

    shot - fix leak of img data in error path
    
    fix CID 1425223
---
 src/modules/shot/e_mod_save.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/modules/shot/e_mod_save.c b/src/modules/shot/e_mod_save.c
index daff9dcd9..c7f966f63 100644
--- a/src/modules/shot/e_mod_save.c
+++ b/src/modules/shot/e_mod_save.c
@@ -150,6 +150,7 @@ save_to(const char *file)
                     }
                   else
                     {
+                       free(data);
                        free(thdat->path);
                        free(thdat->outfile);
                        free(thdat);

-- 


Reply via email to