service: Fix refcount leak on ipconfigs
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Mon, 19 Mar 2012 12:50:41 +0000 (13:50 +0100)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 20 Mar 2012 10:03:48 +0000 (12:03 +0200)
commiteb4a4ea46c7707f061d734b5f0ceb4ca7465fa47
tree68727502cb30b84d30c51dbb985722568f4f80cf
parent4ce90440a70abce7de5377776e942ff14e7152f9
service: Fix refcount leak on ipconfigs

In __connman_service_connect() we call __connman_ipconfig_enable()
which takes a ref on the ipconfig object. Later when the service
state machine is updated service takes another ref.

When the device disapears during operation (the user didn't call
Service.Disconnect()), we do not call __connman_ipconfig_disable()
anymore which would drop one ref.
src/service.c