summaryrefslogtreecommitdiffstats
path: root/pathd/path_pcep_pcc.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-08-15 17:51:27 +0200
committerDonald Sharp <sharpd@nvidia.com>2022-08-15 21:45:05 +0200
commit241b791e83ee0e05a662cfeb274a756d5f76698a (patch)
tree91e89997c7d79ede58d3abe32b9ae7810e042a4d /pathd/path_pcep_pcc.c
parentlib: Ensure ls_msg2edge does not use memory after freeing (diff)
downloadfrr-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.c2
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);
}
}