mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Skip check for NULL before dm_free
dm_free makes this test itself.
This commit is contained in:
parent
b680d5bf7b
commit
5c246f4876
7
lib/cache/lvmcache.c
vendored
7
lib/cache/lvmcache.c
vendored
@ -857,11 +857,8 @@ static int _free_vginfo(struct lvmcache_vginfo *vginfo)
|
|||||||
}
|
}
|
||||||
while ((vginfo2 = vginfo2->next));
|
while ((vginfo2 = vginfo2->next));
|
||||||
|
|
||||||
if (vginfo->vgname)
|
dm_free(vginfo->vgname);
|
||||||
dm_free(vginfo->vgname);
|
dm_free(vginfo->creation_host);
|
||||||
|
|
||||||
if (vginfo->creation_host)
|
|
||||||
dm_free(vginfo->creation_host);
|
|
||||||
|
|
||||||
if (*vginfo->vgid && _vgid_hash &&
|
if (*vginfo->vgid && _vgid_hash &&
|
||||||
vginfo_from_vgid(vginfo->vgid) == vginfo)
|
vginfo_from_vgid(vginfo->vgid) == vginfo)
|
||||||
|
Loading…
Reference in New Issue
Block a user