OSDN Git Service
(root)
/
winmerge-jp
/
winmerge-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6c83ec
)
PATCH: [ 2589578 ] Fix memory leak in CRegKeyEx
author
Kimmo Varis
<kimmov@gmail.com>
Wed, 11 Feb 2009 20:43:02 +0000
(20:43 +0000)
committer
Kimmo Varis
<kimmov@gmail.com>
Wed, 11 Feb 2009 20:43:02 +0000
(20:43 +0000)
Src/Common/RegKey.cpp
patch
|
blob
|
history
diff --git
a/Src/Common/RegKey.cpp
b/Src/Common/RegKey.cpp
index
74f3652
..
9afaac8
100644
(file)
--- a/
Src/Common/RegKey.cpp
+++ b/
Src/Common/RegKey.cpp
@@
-321,7
+321,7
@@
String CRegKeyEx::ReadString (LPCTSTR pszKey, LPCTSTR defval)
lReturn = RegQueryValueEx(m_hKey, (LPTSTR) pszKey, NULL,
&dwType, (LPBYTE) stringVal, &dwSize);
retString = stringVal;
- delete stringVal;
+ delete
[]
stringVal;
}
if (lReturn == ERROR_SUCCESS)
return retString;