projects
/
lvm2.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de5bc8c
)
lvmlockd: free structs in adopt error path
author
David Teigland <teigland@redhat.com>
Tue, 1 Jul 2025 15:53:33 +0000
(10:53 -0500)
committer
Marian Csontos <mcsontos@redhat.com>
Mon, 29 Sep 2025 16:07:44 +0000
(18:07 +0200)
(cherry picked from commit
fcca60fda61b5a545c936e61380e047deb887779
)
daemons/lvmlockd/lvmlockd-core.c
patch
|
blob
|
history
diff --git
a/daemons/lvmlockd/lvmlockd-core.c
b/daemons/lvmlockd/lvmlockd-core.c
index 0cb10369ac2b11a751e0e599b6cd157243074699..369755ac7c04e415b4e8ba6b3aebf8409cd78938 100644
(file)
--- a/
daemons/lvmlockd/lvmlockd-core.c
+++ b/
daemons/lvmlockd/lvmlockd-core.c
@@
-6331,6
+6331,15
@@
static void adopt_locks(void)
return;
fail:
+ list_for_each_entry_safe(ls, lsafe, &vg_lockd, list) {
+ list_for_each_entry_safe(r, rsafe, &ls->resources, list) {
+ list_del(&r->list);
+ free_resource(r);
+ }
+ list_del(&ls->list);
+ free(ls);
+ }
+
(void) unlink(adopt_file);
log_error("adopt_locks failed, reset host");
}
This page took
0.069126 seconds
and
5
git commands to generate.