From 0155980fd6a841f499670c603eb836dd6ed2c7ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Fri, 8 Jan 2021 21:07:05 +0100 Subject: Free memory on multiple filter command line arguments --- htop.c | 1 + 1 file changed, 1 insertion(+) diff --git a/htop.c b/htop.c index aa6d9147..97746175 100644 --- a/htop.c +++ b/htop.c @@ -204,6 +204,7 @@ static CommandLineSettings parseArguments(int argc, char** argv) { } case 'F': { assert(optarg); + free(flags.commFilter); flags.commFilter = xStrdup(optarg); break; -- cgit v1.2.3