From: Michael Tremer Date: Fri, 27 Oct 2023 17:06:18 +0000 (+0000) Subject: _pakfire: Don't deallocate the context after successful init X-Git-Tag: 0.9.30~1387 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=93de5c75432e8c4330e1060ee5b2fea55e4879ac;p=pakfire.git _pakfire: Don't deallocate the context after successful init Signed-off-by: Michael Tremer --- diff --git a/src/_pakfire/_pakfiremodule.c b/src/_pakfire/_pakfiremodule.c index c93b6695c..0fb45a4f0 100644 --- a/src/_pakfire/_pakfiremodule.c +++ b/src/_pakfire/_pakfiremodule.c @@ -168,9 +168,13 @@ static int initialize_context(void) { // Set the log level to DEBUG pakfire_ctx_set_log_level(pakfire_ctx, LOG_DEBUG); + goto CLEANUP; + ERROR: if (pakfire_ctx) pakfire_ctx_unref(pakfire_ctx); + +CLEANUP: Py_XDECREF(logger); return r;