From bd0c25aec839185fdc7723a4d616093426865c34 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Fri, 27 Oct 2023 14:05:39 +0800 Subject: [PATCH] path->diodes --- ses_core.h | 1 + ses_utils.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/ses_core.h b/ses_core.h index 7f901b8..ac69240 100644 --- a/ses_core.h +++ b/ses_core.h @@ -53,6 +53,7 @@ struct ses_flow_s struct ses_path_s { scf_vector_t* pins; + scf_vector_t* diodes; scf_vector_t* childs; diff --git a/ses_utils.c b/ses_utils.c index f4b0a45..ddceae2 100644 --- a/ses_utils.c +++ b/ses_utils.c @@ -312,6 +312,11 @@ void ses_path_free(ses_path_t* path) if (path->pins) scf_vector_free(path->pins); + if (path->diodes) { + scf_vector_clear(path->diodes, ( void (*)(void*) )free); + scf_vector_free (path->diodes); + } + if (path->childs) { scf_vector_clear(path->childs, ( void (*)(void*) )ses_path_free); scf_vector_free (path->childs); -- 2.25.1