Skip to contentSkip to conversation

master - lvmcache: free vginfo lock_type

PATCH David Teigland 1 participant 1 message May 14, 2020

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=2a304d7a75b572282c288c60497c7c489e7c3cbd
Commit:        2a304d7a75b572282c288c60497c7c489e7c3cbd
Parent:        5c095400de2f84511726cc8178800d19657b814d
Author:        David Teigland <[email protected]>
AuthorDate:    Thu May 14 10:20:08 2020 -0500
Committer:     David Teigland <[email protected]>
CommitterDate: Thu May 14 10:20:08 2020 -0500

lvmcache: free vginfo lock_type

---
 lib/cache/lvmcache.c | 2 ++
 1 file changed, 2 insertions(+)
lib/cache/lvmcache.c +2 -0
index b8575ff62..6cb5ff0d8 100644
@@ -1189,6 +1189,8 @@ static void _free_vginfo(struct lvmcache_vginfo *vginfo)
 	free(vginfo->vgname);
 	free(vginfo->system_id);
 	free(vginfo->creation_host);
+	if (vginfo->lock_type)
+		free(vginfo->lock_type);
 	free(vginfo);
 }