ses_path_alloc()
authoryu.dongliang <18588496441@163.com>
Fri, 27 Oct 2023 06:48:10 +0000 (14:48 +0800)
committeryu.dongliang <18588496441@163.com>
Fri, 27 Oct 2023 06:48:10 +0000 (14:48 +0800)
ses_utils.c

index ddceae288d708e71ac6275876bb345799c7c367f..eb444d25b164edcab277ba4163b2ec0aabf938f5 100644 (file)
@@ -303,6 +303,13 @@ ses_path_t* ses_path_alloc()
                return NULL;
        }
 
+       path->diodes = scf_vector_alloc();
+       if (!path->diodes) {
+               scf_vector_free(path->pins);
+               free(path);
+               return NULL;
+       }
+
        return path;
 }