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

cov: better handle reallocation of adapt_file

If the option would be given more then once.
This commit is contained in:
Zdenek Kabelac 2021-09-19 20:24:35 +02:00
parent ce907bcd26
commit 376e707232

View File

@ -6305,6 +6305,7 @@ int main(int argc, char *argv[])
case '0': case '0':
break; break;
case 128: case 128:
free((void *) adopt_file);
adopt_file = strdup(optarg); adopt_file = strdup(optarg);
break; break;
case 'h': case 'h':