From: yu.dongliang <18588496441@163.com> Date: Fri, 27 Oct 2023 06:48:10 +0000 (+0800) Subject: ses_path_alloc() X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=bf32687c9d410d294ff322135b8d3c3886e9be7e;p=ses.git ses_path_alloc() --- diff --git a/ses_utils.c b/ses_utils.c index ddceae2..eb444d2 100644 --- a/ses_utils.c +++ b/ses_utils.c @@ -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; }