diff options
author | Donald Sharp <sharpd@nvidia.com> | 2022-08-15 17:51:27 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2022-08-15 21:45:05 +0200 |
commit | 241b791e83ee0e05a662cfeb274a756d5f76698a (patch) | |
tree | 91e89997c7d79ede58d3abe32b9ae7810e042a4d /pathd/path_pcep_pcc.c | |
parent | lib: Ensure ls_msg2edge does not use memory after freeing (diff) | |
download | frr-241b791e83ee0e05a662cfeb274a756d5f76698a.tar.xz frr-241b791e83ee0e05a662cfeb274a756d5f76698a.zip |
pathd: Ensure path is free'd after we no longer need it.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'pathd/path_pcep_pcc.c')
-rw-r--r-- | pathd/path_pcep_pcc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pathd/path_pcep_pcc.c b/pathd/path_pcep_pcc.c index b72a536ef..a1c56f93a 100644 --- a/pathd/path_pcep_pcc.c +++ b/pathd/path_pcep_pcc.c @@ -1326,9 +1326,9 @@ void handle_pcep_lsp_initiate(struct ctrl_state *ctrl_state, * possibly disconnect and blacklist */ flog_warn(EC_PATH_PCEP_UNSUPPORTED_PCEP_FEATURE, "Unsupported PCEP protocol feature: %s", err); - pcep_free_path(path); send_pcep_error(pcc_state, PCEP_ERRT_INVALID_OPERATION, PCEP_ERRV_LSP_NOT_PCE_INITIATED, path); + pcep_free_path(path); } } |