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
3
lib/cache/lvmcache.c
vendored
3
lib/cache/lvmcache.c
vendored
@ -857,10 +857,7 @@ 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);
|
||||||
|
|
||||||
if (vginfo->creation_host)
|
|
||||||
dm_free(vginfo->creation_host);
|
dm_free(vginfo->creation_host);
|
||||||
|
|
||||||
if (*vginfo->vgid && _vgid_hash &&
|
if (*vginfo->vgid && _vgid_hash &&
|
||||||
|
Loading…
Reference in New Issue
Block a user