summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-04-20 13:13:55 -0400
committerChris Michael <cp.michael@samsung.com>2015-04-20 13:13:55 -0400
commit820eca333ecd63eba6d064071741f8b2d86f1dc1 (patch)
tree9b7b6539108b7bddd2deab334b61c785a4891ecb
parent843d4705d802c54b70f15ad151ebef532116e446 (diff)
emile: Fix resource leak
Summary: This fixes Coverity CID1288919 where buffer variable was being leaked if emile failed to load the image due to corrupt file. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/lib/emile/emile_image.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/emile/emile_image.c b/src/lib/emile/emile_image.c
index 330bc2fec9..84589e2914 100644
--- a/src/lib/emile/emile_image.c
+++ b/src/lib/emile/emile_image.c
@@ -497,6 +497,7 @@ _emile_tgv_data(Emile_Image *image,
497 if (block_length == 0) 497 if (block_length == 0)
498 { 498 {
499 *error = EMILE_IMAGE_LOAD_ERROR_CORRUPT_FILE; 499 *error = EMILE_IMAGE_LOAD_ERROR_CORRUPT_FILE;
500 eina_binbuf_free(buffer);
500 return EINA_FALSE; 501 return EINA_FALSE;
501 } 502 }
502 503