schema mount UPDATE error check
diff --git a/src/plugins_exts/schema_mount.c b/src/plugins_exts/schema_mount.c
index 1d28268..12bce15 100644
--- a/src/plugins_exts/schema_mount.c
+++ b/src/plugins_exts/schema_mount.c
@@ -1287,8 +1287,9 @@
}
}
- /* Add private plugin data. */
+ /* add private plugin data */
st_priv = calloc(1, sizeof(*st_priv));
+ LY_CHECK_ERR_GOTO(!st_priv, rc = LY_EMEM, cleanup);
st_priv->ext_ctx = ext_ctx;
st_priv->refs = refs;
rc = lyplg_ext_sprinter_tree_set_priv(ctx, st_priv, schema_mount_spriter_tree_free);