sensord: fix double-free issue 61/143361/1
authorkibak.yoon <kibak.yoon@samsung.com>
Wed, 9 Aug 2017 10:39:52 +0000 (19:39 +0900)
committerkibak.yoon <kibak.yoon@samsung.com>
Wed, 9 Aug 2017 10:39:52 +0000 (19:39 +0900)
commit7c9813c0be7c00cf1feaf1718f01ecfde399892a
tree02e47e4baf880caf1cef8651afc0db97fe5335cc
parent27411362d91803c8c0ab6e8d3688592b141e8037
sensord: fix double-free issue

- If the server is terminated unexpectedly, sensor library releases the memory
  of channel automatically. At that time, if client calls disconnect(),
  double-free problem is invoked.
- Because it is right situation to call disconnect() explicitly,
  the auto-release code should be removed.

Change-Id: I31894354eb2d11549dbe0382ce865de6beea89d4
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/shared/channel_event_handler.cpp