]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/swap: another try on memory mgmt
authorMike Yuan <me@yhndnzj.com>
Sat, 23 Mar 2024 08:53:50 +0000 (16:53 +0800)
committerMike Yuan <me@yhndnzj.com>
Sat, 23 Mar 2024 11:48:28 +0000 (19:48 +0800)
Follow-up for ba31a5018f99864c22dd4e0f10712456c7abc934

Another stupid mistake... Shouldn't have
written anything when I was tired.

src/core/swap.c

index afd067f0e0d5b26da9a4097a9fee35af7c559057..655f932f95a21af071e1ba9f268b23422ce65a02 100644 (file)
@@ -438,6 +438,8 @@ static int swap_setup_unit(
         p->priority_set = true;
 
         unit_add_to_dbus_queue(u);
+        TAKE_PTR(new);
+
         return 0;
 }