https://git.reactos.org/?p=reactos.git;a=commitdiff;h=fd87f0ad87bca5449d43802b62fb4a3d1fc0074e
commit fd87f0ad87bca5449d43802b62fb4a3d1fc0074e Author: Pierre Schweitzer <pie...@reactos.org> AuthorDate: Sat Apr 14 15:38:12 2018 +0200 Commit: Pierre Schweitzer <pie...@reactos.org> CommitDate: Sat Apr 14 15:40:26 2018 +0200 [SC] Don't leak service status info on success CID 1434266 --- base/applications/sc/query.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base/applications/sc/query.c b/base/applications/sc/query.c index 87b2468cfd..37ab700052 100644 --- a/base/applications/sc/query.c +++ b/base/applications/sc/query.c @@ -350,6 +350,8 @@ Query(LPCTSTR *ServiceArgs, NULL, pStatus, bExtended); + + HeapFree(GetProcessHeap(), 0, pStatus); } } else