]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
PATCH] Always free deserialized_subscribed on reload
authorAli Abdallah <ali.abdallah@suse.com>
Thu, 21 Jan 2021 06:37:21 +0000 (07:37 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 5 Feb 2021 17:04:55 +0000 (18:04 +0100)
Otherwise, it will keep consuming memory on systemctl daemon-reload.

src/core/manager.c

index a1d6f7cc10bd0fc9b087f365665e226ff13d2177..6858950107985ea1812364516ae7b84adede6f69 100644 (file)
@@ -3842,6 +3842,9 @@ int manager_reload(Manager *m) {
         /* Clean up runtime objects no longer referenced */
         manager_vacuum(m);
 
+        /* Clean up deserialized tracked clients */
+        m->deserialized_subscribed = strv_free(m->deserialized_subscribed);
+
         /* Consider the reload process complete now. */
         assert(m->n_reloading > 0);
         m->n_reloading--;