dhcp: fix memleak in process_dhclient_rfc3442_route()

(cherry picked from commit 1935fca09a)
This commit is contained in:
Thomas Haller 2015-02-08 11:03:15 +01:00
parent 825eb5cb62
commit 84ff53ec76

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;
}