Fix resource leak : 23614 19/154519/1 accepted/tizen/unified/20171011.070005 submit/tizen/20171010.112852
authorsaerome kim <saerome.kim@samsung.com>
Tue, 10 Oct 2017 10:39:10 +0000 (19:39 +0900)
committersaerome kim <saerome.kim@samsung.com>
Tue, 10 Oct 2017 10:43:49 +0000 (19:43 +0900)
commit3244c574f8b5858734e5c02620aaa87ad270ceec
tree579664ec94962e900531183d45eed7e021625fab
parent8ff258a30d12afd475d293032e2bcae822f64bd6
Fix resource leak : 23614

This problem is caused by managing a number of operations to be processed asynchronously in the initialization list.
If the initialization of a function that needs to be processed asynchronously fails, we did not free the previously added asynchronous functions.
To solve this problem, we modified the asynchronous initialization function list to be deleted from the memory when the function creation to be processed asynchronously fails and when the plugin is unloaded.

Change-Id: I66226faedb360d7c2f41fd35db516a63684e112d
Signed-off-by: saerome kim <saerome.kim@samsung.com>
zigbee-daemon/zigbee-lib/src/zblib_service.c