]> sourceware.org Git - lvm2.git/commitdiff
hints: fix mem leaking buffers
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 14 Nov 2019 17:00:54 +0000 (18:00 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 14 Nov 2019 17:06:42 +0000 (18:06 +0100)
lib/label/hints.c

index df1327a10bc65684608ef13ffd752de8afb13aad..8739f337df84fcab4b33b77195c7d9218adcec4e 100644 (file)
@@ -1200,6 +1200,8 @@ check:
                        return;
                }
        }
+
+       free(name);
 }
 
 /*
@@ -1353,6 +1355,9 @@ int get_hints(struct cmd_context *cmd, struct dm_list *hints_out, int *newhints,
                  dm_list_size(devs_out), dm_list_size(devs_in));
 
        dm_list_splice(hints_out, &hints_list);
+
+       free(vgname);
+
        return 1;
 }
 
This page took 1.404359 seconds and 5 git commands to generate.