1
0
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:
Zdenek Kabelac
2021-02-27 14:14:25 +01:00
parent 0b7a4503e5
commit eb3dcc72eb
7 changed files with 26 additions and 53 deletions

View File

@ -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);
}