git://git.iain.cx/iain
/
nssm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6cfe6e
)
Remember to free info after QueryServiceConfig2().
author
Iain Patterson
<me@iain.cx>
Mon, 30 Dec 2013 11:20:07 +0000
(11:20 +0000)
committer
Iain Patterson
<me@iain.cx>
Wed, 1 Jan 2014 12:41:52 +0000
(12:41 +0000)
We weren't freeing the SERVICE_CONFIG_DELAYED_AUTO_START_INFO buffer
after checking for delayed auto start.
service.cpp
patch
|
blob
|
history
diff --git
a/service.cpp
b/service.cpp
index
eec2261
..
abe745a
100644
(file)
--- a/
service.cpp
+++ b/
service.cpp
@@
-386,6
+386,7
@@
int pre_edit_service(int argc, TCHAR **argv) {
\r
if (QueryServiceConfig2(service->handle, SERVICE_CONFIG_DELAYED_AUTO_START_INFO, (unsigned char *) info, bufsize, &bufsize)) {
\r
if (info->fDelayedAutostart) service->startup = NSSM_STARTUP_DELAYED;
\r
+ HeapFree(GetProcessHeap(), 0, info);
\r
}
\r
else {
\r
error = GetLastError();
\r