Skip to content

Commit

Permalink
interfaces-plugin: free allocated neighbor libnl data in neighbor IP …
Browse files Browse the repository at this point in the history
…change callback
  • Loading branch information
zinccyy committed Oct 11, 2022
1 parent 08742f1 commit 638a0cb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@ int interfaces_interface_ipv4_neighbor_change_ip(void* priv, sr_session_ctx_t* s
mod_ctx->mod_data.ipv4.neighbor.link_layer_address = NULL;
mod_ctx->mod_data.ipv4.neighbor.link_layer_set = false;

if (request_neigh) {
rtnl_neigh_put(request_neigh);
}

return error;
}

Expand Down

0 comments on commit 638a0cb

Please sign in to comment.