if(all_features_not_supported){
ret = connection_profile_get_subnet_mask(profile_temp, CONNECTION_ADDRESS_FAMILY_IPV4, &ip_addr);
+ FREE_RESOURCE(ip_addr);
assert_eq(ret, CONNECTION_ERROR_NOT_SUPPORTED);
return 0;
}
assert(profile_temp);
ret = connection_profile_get_subnet_mask(profile_temp, CONNECTION_ADDRESS_FAMILY_IPV4, &ip_addr);
+ FREE_RESOURCE(ip_addr);
assert_eq(ret, CONNECTION_ERROR_NONE);
return 0;
if(telephony_supported == false && wifi_supported == false && ethernet_supported == false) {
ret = connection_remove_route_ipv6(connection, interface_name, "2001:db8:1:0::1", "fe80::");
+ FREE_RESOURCE(interface_name);
assert_eq(ret, CONNECTION_ERROR_NOT_SUPPORTED);
return 0;
}
connection_profile_get_network_interface_name(profile_temp, &interface_name);
ret = connection_remove_route_ipv6(connection, interface_name, "2001:db8:1:0::1", "fe80::");
+ FREE_RESOURCE(interface_name);
assert_eq(ret, CONNECTION_ERROR_NONE);
return 0;