Fix memory leak & tained value found by static analyzer 05/114105/1
authorJiyong Min <jiyong.min@samsung.com>
Thu, 9 Feb 2017 00:51:42 +0000 (09:51 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Fri, 10 Feb 2017 04:42:23 +0000 (20:42 -0800)
commit20468127f0c1015d8b11325cadb263c73b5d2c17
tree61e05cce04396ef34bf0b014e403d5d4494a6cd1
parentc6c8812f9b0ff41c8c3c667829b4789752683aea
Fix memory leak & tained value found by static analyzer

 - Memory leak
  GifMakeMapObject allocate storage for a color map object with the given number of RGB triplet slots.
  So the storage should be freed by calling GifFreeMapObject that is no longer needed.

 - Tained value
  GifWord is type of SWidth, SHeight. It is defined to be integer in Gif.
  So it is not tained to compare GifWord with integer. We add type cast to be clear.

Change-Id: I8c84e0ef05cfefb5f0f995be3bb14c69702a9d8b
Signed-off-by: jiyong.min <jiyong.min@samsung.com>
(cherry picked from commit 0a5832bc0febd743c1334f36117ecebe8448cd6d)
gif/mm_util_gif.c
packaging/libmm-utility.spec