mirror of
git://sourceware.org/git/lvm2.git
synced 2025-07-30 23:41:55 +03:00
cleanup: free already checks for NULL
This commit is contained in:
3
lib/cache/lvmcache.c
vendored
3
lib/cache/lvmcache.c
vendored
@ -1406,8 +1406,7 @@ 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->lock_type);
|
||||
free(vginfo);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user