connection: Fix service refcount
authorYu A Wang <arron.wang@intel.com>
Mon, 19 Dec 2011 08:00:17 +0000 (03:00 -0500)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 13 Jan 2012 15:15:06 +0000 (16:15 +0100)
commitb68795352dd5a9ac41eab31c765ade0c88329a6e
tree198e4925d2ac67ed574e948f550801457d68a4ed
parente6e6fe0dc39457c0c10fa0e5c549be6439cdc88e
connection: Fix service refcount

Service may be refcount two times when add_gateway for both ipv4 and
ipv6, we need to unref the service twice according when we have both
ipv6 and ipv4 gateway
src/connection.c