Skip to content

Commit

Permalink
Merge pull request #28 from opensourcerouting/pathd-pcep-rebase-fix_m…
Browse files Browse the repository at this point in the history
…em_error

pathd: fix heap use after deletion
  • Loading branch information
GalaxyGorilla authored Jun 29, 2020
2 parents f30ad66 + eb098b0 commit 6dee0bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pathd/path_nb_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,10 @@ int pathd_te_segment_list_segment_destroy(struct nb_cb_destroy_args *args)
return NB_OK;

segment = nb_running_unset_entry(args->dnode);
srte_segment_entry_del(segment);
SET_FLAG(segment->segment_list->flags, F_SEGMENT_LIST_MODIFIED);

srte_segment_entry_del(segment);

return NB_OK;
}

Expand Down

0 comments on commit 6dee0bf

Please sign in to comment.