From 59da15f3938a0ad6568fb3420539a095cf3bbaf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Sj=C3=B6lund?= Date: Sun, 1 Feb 2026 10:45:42 +0100 Subject: [PATCH] container: add missing yajl cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Erik Sjölund --- src/libcrun/container.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libcrun/container.c b/src/libcrun/container.c index 699188bc5f..1ec253695c 100644 --- a/src/libcrun/container.c +++ b/src/libcrun/container.c @@ -4989,7 +4989,10 @@ libcrun_container_add_or_remove_mounts_from_file (libcrun_context_t *context, co return ret; if (! YAJL_IS_ARRAY (tree)) - return crun_make_error (err, 0, "mounts must be an array"); + { + ret = crun_make_error (err, 0, "mounts must be an array"); + goto cleanup; + } else { values = YAJL_GET_ARRAY (tree)->values;