summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2016-02-25 16:24:48 +0100
committerPeter Rajnoha <prajnoha@redhat.com>2016-02-25 16:25:27 +0100
commit42ae586fa72a30e0f22c0916e0551228d5eed5c3 (patch)
tree716a5938896eccabead9a7c9ee4561849b6ae61c
parenta77ded3001ad584e75bb3b315a8c99c56951e530 (diff)
downloadlvm2-42ae586fa72a30e0f22c0916e0551228d5eed5c3.tar.gz
lvmcache: fix missing free of vginfo->system_id causing mem leak
-rw-r--r--lib/cache/lvmcache.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/cache/lvmcache.c b/lib/cache/lvmcache.c
index 1945a748e..c28460ee5 100644
--- a/lib/cache/lvmcache.c
+++ b/lib/cache/lvmcache.c
@@ -1177,6 +1177,9 @@ static int _free_vginfo(struct lvmcache_vginfo *vginfo)
vginfo2 = vginfo2->next;
}
+ if (vginfo->system_id)
+ dm_free(vginfo->system_id);
+
dm_free(vginfo->vgname);
dm_free(vginfo->creation_host);