path->diodes
authoryu.dongliang <18588496441@163.com>
Fri, 27 Oct 2023 06:05:39 +0000 (14:05 +0800)
committeryu.dongliang <18588496441@163.com>
Fri, 27 Oct 2023 06:05:39 +0000 (14:05 +0800)
ses_core.h
ses_utils.c

index 7f901b818b8e1dce2c50427e56de54826b2d9539..ac69240e882c77f0bc684e23e69773cdb94186fc 100644 (file)
@@ -53,6 +53,7 @@ struct ses_flow_s
 struct ses_path_s
 {
        scf_vector_t*  pins;
+       scf_vector_t*  diodes;
 
        scf_vector_t*  childs;
 
index f4b0a45729a9a85453521505aff3e8994fb422c1..ddceae288d708e71ac6275876bb345799c7c367f 100644 (file)
@@ -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);