From: Michael Tremer Date: Sun, 29 Jun 2025 13:38:38 +0000 (+0000) Subject: oci: Take the directly passed context X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=baa8992a08b2ecaf37b3e061eee2f6157fa3f113;p=pakfire.git oci: Take the directly passed context Signed-off-by: Michael Tremer --- 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);