devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=843d4705d802c54b70f15ad151ebef532116e446

commit 843d4705d802c54b70f15ad151ebef532116e446
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Mon Apr 20 13:06:41 2015 -0400

    emile: Fix resource leak
    
    Summary: This fixes Coverity CID1288918 where data_start variable was
    being leaked if the rectangles did not intersect.
    
    @fix
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/emile/emile_image.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/lib/emile/emile_image.c b/src/lib/emile/emile_image.c
index dc8af2c..330bc2f 100644
--- a/src/lib/emile/emile_image.c
+++ b/src/lib/emile/emile_image.c
@@ -510,7 +510,10 @@ _emile_tgv_data(Emile_Image *image,
                                image->block.width, image->block.height);
 
             if (!eina_rectangle_intersection(&current, &master))
-              continue;
+              {
+                 eina_binbuf_free(data_start);
+                 continue;
+              }
 
             if (image->compress)
               {

-- 


Reply via email to