mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[KMTEST]
Leak less memory. svn path=/trunk/; revision=67888
This commit is contained in:
parent
23a0889551
commit
d9c71ea288
1 changed files with 15 additions and 0 deletions
|
@ -97,6 +97,13 @@ void TestFsRtlAddToTunnelCache(ULONGLONG DirectoryKey, PUNICODE_STRING s_name, P
|
|||
ok (b == 0, "long name after call FsRtlAddToTunnelCache != long name befo call FsRtlAddToTunnelCache\n\n");
|
||||
b = RtlCompareUnicodeString(s_name, bs_name, TRUE);
|
||||
ok (b == 0, "short name after call FsRtlAddToTunnelCache != short name befo call FsRtlAddToTunnelCache\n\n");
|
||||
|
||||
if (bs_name->Buffer) ExFreePool(bs_name->Buffer);
|
||||
ExFreePool(bs_name);
|
||||
if (bl_name->Buffer) ExFreePool(bl_name->Buffer);
|
||||
ExFreePool(bl_name);
|
||||
ExFreePool(Bufb);
|
||||
ExFreePool(Buf);
|
||||
}
|
||||
|
||||
BOOLEAN TestFsRtlFindInTunnelCache(ULONG DirectoryKey, PUNICODE_STRING name, PUNICODE_STRING s_name, PUNICODE_STRING l_name)
|
||||
|
@ -168,4 +175,12 @@ START_TEST(FsRtlTunnel)
|
|||
|
||||
is = TestFsRtlFindInTunnelCache(12347, name, s_name, l_name);
|
||||
ok(is == FALSE, "FsRtlDeleteTunnelCache dosn't clear cash\n");
|
||||
|
||||
ExFreePool(a);
|
||||
ExFreePool(name);
|
||||
ExFreePool(l_name);
|
||||
ExFreePool(s_name);
|
||||
|
||||
ExFreePool(Tb);
|
||||
ExFreePool(T);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue