From a96d2d011847f1709bddd6e33b479efb8c9de149 Mon Sep 17 00:00:00 2001 From: Teodora Date: Wed, 22 Oct 2025 12:09:01 +0200 Subject: [PATCH] Properly pass the arguments in ly_ctx_destroy() v1 function --- radio/fhi_72/mplane/yang/get-yang.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/radio/fhi_72/mplane/yang/get-yang.c b/radio/fhi_72/mplane/yang/get-yang.c index 60131b34cf..abe17cca63 100644 --- a/radio/fhi_72/mplane/yang/get-yang.c +++ b/radio/fhi_72/mplane/yang/get-yang.c @@ -68,7 +68,11 @@ static bool store_schemas(xmlNode *node, ru_session_t *ru_session, struct ly_ctx if (!mod) { MP_LOG_W("Unable to load module \"%s\" from RU \"%s\".\n", module_name, ru_session->ru_ip_add); nc_rpc_free(get_schema_rpc); +#ifdef MPLANE_V1 + ly_ctx_destroy(*ctx, NULL); +#elif defined MPLANE_V2 ly_ctx_destroy(*ctx); +#endif return false; } }