diff --git a/Sandboxie/core/dll/key_merge.c b/Sandboxie/core/dll/key_merge.c index e2bf25cc..c355cf14 100644 --- a/Sandboxie/core/dll/key_merge.c +++ b/Sandboxie/core/dll/key_merge.c @@ -780,6 +780,8 @@ _FX NTSTATUS Key_MergeCacheDummys(KEY_MERGE *merge, const WCHAR *TruePath) if (NT_SUCCESS(status)) { + File_NtCloseImpl(KeyHandle); + name_len *= sizeof(WCHAR); len = sizeof(KEY_MERGE_SUBKEY) + name_len + sizeof(WCHAR);