From baa8992a08b2ecaf37b3e061eee2f6157fa3f113 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 29 Jun 2025 13:38:38 +0000 Subject: [PATCH] oci: Take the directly passed context Signed-off-by: Michael Tremer --- src/pakfire/oci.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pakfire/oci.c b/src/pakfire/oci.c index 28608ecd..5128f41f 100644 --- a/src/pakfire/oci.c +++ b/src/pakfire/oci.c @@ -557,7 +557,7 @@ ERROR: int pakfire_oci_mkimage(pakfire_ctx* ctx, pakfire_root* root, FILE* f) { struct pakfire_oci_writer writer = { - .ctx = pakfire_root_get_ctx(root), + .ctx = ctx, .root = root, }; int r; @@ -630,8 +630,6 @@ ERROR: json_object_put(writer.config); if (writer.image) pakfire_archive_writer_unref(writer.image); - if (writer.ctx) - pakfire_ctx_unref(writer.ctx); if (writer.diffid) free(writer.diffid); -- 2.47.2