Skip to content

Commit

Permalink
interfaces-plugin: free allocated neighbor libnl data
Browse files Browse the repository at this point in the history
  • Loading branch information
zinccyy committed Oct 11, 2022
1 parent b412a85 commit 08742f1
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ int interfaces_interface_ipv4_neighbor_change_link_layer_address(void* priv, sr_
error = -1;

out:
if (request_neigh) {
rtnl_neigh_put(request_neigh);
}

return error;
}
Expand Down

0 comments on commit 08742f1

Please sign in to comment.