From: yu.dongliang <18588496441@163.com> Date: Fri, 27 Oct 2023 06:05:39 +0000 (+0800) Subject: path->diodes X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=bd0c25aec839185fdc7723a4d616093426865c34;p=ses.git path->diodes --- 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);