Fix memory leak issue 07/122407/1 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170403.185858 accepted/tizen/ivi/20170403.022616 accepted/tizen/mobile/20170403.022605 accepted/tizen/tv/20170403.022608 accepted/tizen/unified/20170403.022633 accepted/tizen/wearable/20170403.022611 submit/tizen/20170403.011502 submit/tizen/20170403.011628 tizen_4.0.m1_release
authorWootak Jung <wootak.jung@samsung.com>
Fri, 31 Mar 2017 07:56:42 +0000 (16:56 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Fri, 31 Mar 2017 07:57:04 +0000 (16:57 +0900)
- po->impi must be freed in _free_hook()

Change-Id: Idd3e70cd131d8083e6524a9187bd3034358d942d

packaging/libtcore.spec
src/core_object/co_sim.c

index f07718d..ce94be2 100644 (file)
@@ -1,6 +1,6 @@
 %define major 0
 %define minor 3
-%define patchlevel 16
+%define patchlevel 17
 
 Name:           libtcore
 Version:        %{major}.%{minor}.%{patchlevel}
index 4aaad2c..1ef6301 100644 (file)
@@ -335,6 +335,9 @@ static void _free_hook(CoreObject *o)
                if (po->ist)
                        free(po->ist);
 
+               if (po->impi)
+                       free(po->impi);
+
                free(po);
                tcore_object_link_object(o, NULL);
        }