Fix memory leak at thread termination.
authorKIM JungYong <jyong2.kim@samsung.com>
Tue, 9 Aug 2016 07:17:11 +0000 (16:17 +0900)
committerMadan Lanka <lanka.madan@samsung.com>
Wed, 10 Aug 2016 04:23:46 +0000 (04:23 +0000)
commit0461bd3f5e7dd9ec4cf80d774bd59165d58e4ac3
treefb24bac07b693dfd1d6cf7d51e52f8f96b4a8667
parent22692dcd87074b554694d6247c5c4025c2dc7654
Fix memory leak at thread termination.

When push thread done one's works, thread handle does not deallocated.
So, push thread was detached from consumer thread,
and allocated push thread handle was deallocated.

This issue was found on valgrind.

Change-Id: Ia99f960adc8131f2f97f99aa455c19a021abf70f
Signed-off-by: KIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10187
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
service/notification/src/consumer/NSConsumerScheduler.c
service/notification/src/consumer/NSThread.c
service/notification/src/consumer/NSThread.h