diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-05-01 07:42:19 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-05-01 07:42:19 +0530 |
commit | 14a5ba837f78bca9d524d29b9800869173fe45ba (patch) | |
tree | 885af97a01b96a774af098e63d00497fbeccf88a /src/npassd/service.c | |
parent | 4030e9667b8be47ec2d7a97d9711d68aa153805e (diff) |
npassd/service/service_free: free collections
Diffstat (limited to 'src/npassd/service.c')
-rw-r--r-- | src/npassd/service.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/npassd/service.c b/src/npassd/service.c index e57fefe..8fa1b19 100644 --- a/src/npassd/service.c +++ b/src/npassd/service.c @@ -149,10 +149,13 @@ static int handle_open_session(sd_bus_message *msg, void *data, void service_free(struct service *service) { - struct session *p; + struct session *s; + struct collection *c; - LIST_FOREACH(p, &service->sessions, dlist) - session_free(p); + LIST_FOREACH(s, &service->sessions, dlist) + session_free(s); + LIST_FOREACH(c, &service->collections, dlist) + collection_free(c); sd_bus_slot_unref(service->slot); } |