[lvm-devel] master - lvmetad: Fix a typo-induced leak in destroy_metadata_hashes.
Petr Rockai
mornfall at fedoraproject.org
Tue Oct 9 05:52:55 UTC 2012
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=138b4e1719324139426d894f666d00b8f5b86965
Commit: 138b4e1719324139426d894f666d00b8f5b86965
Parent: a19a5953433c86811df80c59de7ec6346c62be32
Author: Petr Rockai <prockai at redhat.com>
AuthorDate: Mon Oct 8 20:15:09 2012 +0200
Committer: Petr Rockai <prockai at redhat.com>
CommitterDate: Mon Oct 8 20:35:29 2012 +0200
lvmetad: Fix a typo-induced leak in destroy_metadata_hashes.
---
daemons/lvmetad/lvmetad-core.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/daemons/lvmetad/lvmetad-core.c b/daemons/lvmetad/lvmetad-core.c
index dce7535..1dc05d6 100644
--- a/daemons/lvmetad/lvmetad-core.c
+++ b/daemons/lvmetad/lvmetad-core.c
@@ -51,6 +51,7 @@ static void destroy_metadata_hashes(lvmetad_state *s)
{
struct dm_hash_node *n = NULL;
+ n = dm_hash_get_first(s->vgid_to_metadata);
while (n) {
dm_config_destroy(dm_hash_get_data(s->vgid_to_metadata, n));
n = dm_hash_get_next(s->vgid_to_metadata, n);
More information about the lvm-devel
mailing list