Skip to content

Commit

Permalink
interfaces-plugin: free allocated address libnl data in address IP ch…
Browse files Browse the repository at this point in the history
…ange callback
  • Loading branch information
zinccyy committed Oct 11, 2022
1 parent 638a0cb commit f8f3c9c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,10 @@ int interfaces_interface_ipv4_address_change_ip(void* priv, sr_session_ctx_t* se
sr_session_stop(running_session);
}

if (request_addr) {
rtnl_addr_put(request_addr);
}

// re-initialize mod_ctx data
mod_ctx->mod_data.ipv4.address.prefix_length = 0;
mod_ctx->mod_data.ipv4.address.prefix_set = false;
Expand Down

0 comments on commit f8f3c9c

Please sign in to comment.