diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2018-04-01 12:21:38 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2018-04-02 10:43:52 +0200 |
commit | 3dc8c916a94483bba2eed5ba34ccfc864866bb4e (patch) | |
tree | 6b843a5fd85103ed57ffa6b7f89a7de0eb5d958c /vlan.c | |
parent | 9c8d7816fc5e966b0c0efab9c1234734e0c5c254 (diff) | |
download | netifd-3dc8c916a94483bba2eed5ba34ccfc864866bb4e.tar.gz |
interface-ip: fix memory leak in interface_ip_add_target_route()
Commit 9c8d781 introduced a memory leak in interface_ip_add_target_route
in case interface_ip_find_addr_target returns true for a given address
by not freeing the previously allocated route.
While at it rework the logic so a host route is only allocated when it's
really required.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'vlan.c')
0 files changed, 0 insertions, 0 deletions