dhcp: fix memleak in process_dhclient_rfc3442_route()

This commit is contained in:
Thomas Haller 2015-02-08 11:03:15 +01:00
parent a9bfe9f4bb
commit 1935fca09a

View file

@ -140,6 +140,7 @@ process_dhclient_rfc3442_route (const char **octets,
g_free (str_addr);
goto error;
}
g_free (str_addr);
tmp_addr &= nm_utils_ip4_prefix_to_netmask ((guint32) tmp);
route->network = tmp_addr;
}