1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-10 00:58:20 +03:00

PATCH] Always free deserialized_subscribed on reload

Otherwise, it will keep consuming memory on systemctl daemon-reload.
This commit is contained in:
Ali Abdallah 2021-01-21 07:37:21 +01:00 committed by Lennart Poettering
parent ca9fab8896
commit 3deed59afd

View 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--;