From abef0ec308dc2adf90798733902bff23a7e3a916 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Sat, 23 Mar 2024 16:53:50 +0800 Subject: [PATCH] core/swap: another try on memory mgmt Follow-up for ba31a5018f99864c22dd4e0f10712456c7abc934 Another stupid mistake... Shouldn't have written anything when I was tired. --- src/core/swap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/swap.c b/src/core/swap.c index afd067f0e0..655f932f95 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; }