Skip to content

Commit fd87f0a

Browse files
committed
[SC] Don't leak service status info on success
CID 1434266
1 parent ff9c737 commit fd87f0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

base/applications/sc/query.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,8 @@ Query(LPCTSTR *ServiceArgs,
350350
NULL,
351351
pStatus,
352352
bExtended);
353+
354+
HeapFree(GetProcessHeap(), 0, pStatus);
353355
}
354356
}
355357
else

0 commit comments

Comments
 (0)