diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-04-29 10:14:12 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-04-29 10:14:12 +0200 |
commit | 11b81c1026c17548bfdbb861ac696f9c6acc628e (patch) | |
tree | c43145901904967a06d6acacc5663269b8dfc270 /cli_ure | |
parent | 5c1c297fa2a0a2e5af0878fbd17dcf21810ac5f6 (diff) |
Fix memory leaks
Change-Id: Id67d5375bedc6e6c10082d9c5ee69d6e932be158
Diffstat (limited to 'cli_ure')
-rw-r--r-- | cli_ure/source/native/native_bootstrap.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cli_ure/source/native/native_bootstrap.cxx b/cli_ure/source/native/native_bootstrap.cxx index 583dbf30fd4d..8be72287fd9d 100644 --- a/cli_ure/source/native/native_bootstrap.cxx +++ b/cli_ure/source/native/native_bootstrap.cxx @@ -93,6 +93,7 @@ WCHAR* getPathFromRegistryKey( HKEY hroot, LPCWSTR subKeyName ) if ( RegQueryValueEx( hkey, NULL, NULL, &type, (LPBYTE) data, &size ) != ERROR_SUCCESS ) { RegCloseKey( hkey ); + delete[] data; return NULL; } @@ -287,6 +288,7 @@ extern "C" FARPROC WINAPI delayLoadHook( szLibName = new WCHAR[size]; if (! MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, pdli->szDll, -1, szLibName, size)) { + delete[] szLibName; return 0; } } |