Free memory on multiple filter command line arguments

This commit is contained in:
Christian Göttsche 2021-01-08 21:07:05 +01:00
parent 2af90b711f
commit 0155980fd6
1 changed files with 1 additions and 0 deletions

1
htop.c
View File

@ -204,6 +204,7 @@ static CommandLineSettings parseArguments(int argc, char** argv) {
}
case 'F': {
assert(optarg);
free(flags.commFilter);
flags.commFilter = xStrdup(optarg);
break;