1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

hints: fix mem leaking buffers

This commit is contained in:
Zdenek Kabelac 2019-11-14 18:00:54 +01:00
parent 1349a52626
commit c38be06531

View File

@ -1200,6 +1200,8 @@ check:
return; 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_size(devs_out), dm_list_size(devs_in));
dm_list_splice(hints_out, &hints_list); dm_list_splice(hints_out, &hints_list);
free(vgname);
return 1; return 1;
} }