Skip to content

Commit

Permalink
interfaces-plugin: free allocated request address libnl data in prefi…
Browse files Browse the repository at this point in the history
…x-length and netmask change callbacks
  • Loading branch information
zinccyy committed Oct 11, 2022
1 parent f8f3c9c commit e551a8a
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ int interfaces_interface_ipv4_address_change_netmask(void* priv, sr_session_ctx_
error = -1;

out:
if (request_addr) {
rtnl_addr_put(request_addr);
}

return error;
}

Expand Down Expand Up @@ -231,6 +235,10 @@ int interfaces_interface_ipv4_address_change_prefix_length(void* priv, sr_sessio
error = -1;

out:
if (request_addr) {
rtnl_addr_put(request_addr);
}

return error;
}

Expand Down

0 comments on commit e551a8a

Please sign in to comment.