evas: Fix resource leak in evas_module_find_type
authorChris Michael <cp.michael@samsung.com>
Wed, 25 Jan 2017 13:53:41 +0000 (08:53 -0500)
committerChris Michael <cp.michael@samsung.com>
Wed, 25 Jan 2017 14:09:38 +0000 (09:09 -0500)
commit8b2ca30eb5bc112b47155cc3694be1aa39b1345f
treea31a36902d7995b3436d09f8fe2689e3f424ac78
parent54655d65a3e0422da163d88094556a972ca57136
evas: Fix resource leak in evas_module_find_type

Coverity reports a resource leak here if we successfully load the evas
module as we were never freeing the eina_module here. Previously we
would just return the evas module without proper cleanup of the
eina_module. This patch fixes the leak by calling eina_module_free if
we successfully load the evas module.

Fixes CID1367503

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/evas/file/evas_module.c