mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 08:56:15 +09:00
PATCH] Always free deserialized_subscribed on reload
Otherwise, it will keep consuming memory on systemctl daemon-reload.
This commit is contained in:
committed by
Lennart Poettering
parent
ca9fab8896
commit
3deed59afd
@@ -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--;
|
||||
|
||||
Reference in New Issue
Block a user