From: Jukka Rissanen Date: Fri, 31 Dec 2010 09:57:11 +0000 (+0200) Subject: Possible memory leak when setting up ipconfig X-Git-Tag: 0.66~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8dd792fc5aa56392b594ce075df1789fcb5a3d0;p=platform%2Fupstream%2Fconnman.git Possible memory leak when setting up ipconfig --- diff --git a/src/service.c b/src/service.c index c88e327..b90cc0c 100644 --- a/src/service.c +++ b/src/service.c @@ -4185,8 +4185,12 @@ struct connman_service * __connman_service_create_from_network(struct connman_ne update_from_network(service, network); index = connman_network_get_index(network); - setup_ip4config(service, index); - setup_ip6config(service, index); + + if (service->ipconfig_ipv4 == NULL) + setup_ip4config(service, index); + + if (service->ipconfig_ipv6 == NULL) + setup_ip6config(service, index); service_register(service);