Index: sandbox/win/src/registry_policy.cc |
=================================================================== |
--- sandbox/win/src/registry_policy.cc (revision 194698) |
+++ sandbox/win/src/registry_policy.cc (working copy) |
@@ -78,7 +78,6 @@ |
if (!::DuplicateHandle(::GetCurrentProcess(), local_handle, |
target_process, target_key_handle, 0, FALSE, |
DUPLICATE_CLOSE_SOURCE | DUPLICATE_SAME_ACCESS)) { |
- ::CloseHandle(local_handle); |
return STATUS_ACCESS_DENIED; |
} |
return STATUS_SUCCESS; |
@@ -106,7 +105,6 @@ |
if (!::DuplicateHandle(::GetCurrentProcess(), local_handle, |
target_process, target_key_handle, 0, FALSE, |
DUPLICATE_CLOSE_SOURCE | DUPLICATE_SAME_ACCESS)) { |
- ::CloseHandle(local_handle); |
return STATUS_ACCESS_DENIED; |
} |
return STATUS_SUCCESS; |