diff options
author | David Teigland <teigland@redhat.com> | 2021-06-16 13:22:54 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2021-06-16 13:42:51 -0500 |
commit | 71cb54d92f96b8da318c8f8380e7ce0bdf0a11bf (patch) | |
tree | 5d2cd70883c45ddbc62b858acba6fdd1a58e26e1 /lib/cache | |
parent | f70d97b91620bc7c2e5c5ccc39913c54379322c2 (diff) | |
download | lvm2-71cb54d92f96b8da318c8f8380e7ce0bdf0a11bf.tar.gz |
coverity cleanups
Diffstat (limited to 'lib/cache')
-rw-r--r-- | lib/cache/lvmcache.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/cache/lvmcache.c b/lib/cache/lvmcache.c index 017134d7d..a798f5ab8 100644 --- a/lib/cache/lvmcache.c +++ b/lib/cache/lvmcache.c @@ -854,6 +854,11 @@ next: dev_name(dev1), has_lv1 ? "is used for" : "is not used for", dev_name(dev2), has_lv2 ? "is used for" : "is not used for"); + free((void *)idname1); + free((void *)idname2); + idname1 = NULL; + idname2 = NULL; + change = 0; if (prev_unchosen1 && !prev_unchosen2) { |