From: Mike Yuan Date: Sat, 23 Mar 2024 08:53:50 +0000 (+0800) Subject: core/swap: another try on memory mgmt X-Git-Tag: v256-rc1~428^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abef0ec308dc2adf90798733902bff23a7e3a916;p=thirdparty%2Fsystemd.git core/swap: another try on memory mgmt Follow-up for ba31a5018f99864c22dd4e0f10712456c7abc934 Another stupid mistake... Shouldn't have written anything when I was tired. --- diff --git a/src/core/swap.c b/src/core/swap.c index afd067f0e0d..655f932f95a 100644 --- a/src/core/swap.c +++ b/src/core/swap.c @@ -438,6 +438,8 @@ static int swap_setup_unit( p->priority_set = true; unit_add_to_dbus_queue(u); + TAKE_PTR(new); + return 0; }