https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8cea82b14c5ff14fc56b6…
commit 8cea82b14c5ff14fc56b6d0e5a432fc9e637f490
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Sat Jul 25 01:00:06 2020 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Wed Aug 19 20:36:13 2020 +0200
[CMD] REPLACE: Fix a memory leak.
---
base/shell/cmd/replace.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/base/shell/cmd/replace.c b/base/shell/cmd/replace.c
index 5929952582f..35c2576168f 100644
--- a/base/shell/cmd/replace.c
+++ b/base/shell/cmd/replace.c
@@ -437,6 +437,7 @@ INT cmd_replace (LPTSTR param)
break;
default:
invalid_switch(arg[i]);
+ freep(arg);
return 0;
}
}