From 843d4705d802c54b70f15ad151ebef532116e446 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Mon, 20 Apr 2015 13:06:41 -0400 Subject: [PATCH] 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 --- 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 dc8af2c196..330bc2fec9 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(¤t, &master)) - continue; + { + eina_binbuf_free(data_start); + continue; + } if (image->compress) { -- 2.34.1