Fix for SVACE (WGID 322531) in setup-adaptor accepted/tizen/unified/20181002.093448 submit/tizen/20181002.025635
authorhwajeong.son <hwajeong.son@samsung.com>
Mon, 1 Oct 2018 10:58:43 +0000 (19:58 +0900)
committerhwajeong.son <hwajeong.son@samsung.com>
Tue, 2 Oct 2018 02:49:24 +0000 (11:49 +0900)
commitc1e05822c977d38bba76cb1e1ef94efb58f7d69c
treea2b69d13944622ed8ef2bff569210410458fe063
parentcd326a9d312a41c4acbcd40061382a3e1e087970
Fix for SVACE (WGID 322531) in setup-adaptor

The issue is caused by g_main_loop_new.
If the thread is completed, it should be freed.
In case of error like unitializing case, it should be properly freed.

Change-Id: I1305cfcd24ccd53218818427978fac5242523089
src/setup_network.c