Author: pschweitzer
Date: Sun May 24 18:14:49 2015
New Revision: 67888
URL:
http://svn.reactos.org/svn/reactos?rev=67888&view=rev
Log:
[KMTEST]
Leak less memory.
Modified:
trunk/rostests/kmtests/ntos_fsrtl/FsRtlTunnel.c
Modified: trunk/rostests/kmtests/ntos_fsrtl/FsRtlTunnel.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/kmtests/ntos_fsrtl/FsRtlT…
==============================================================================
--- trunk/rostests/kmtests/ntos_fsrtl/FsRtlTunnel.c [iso-8859-1] (original)
+++ trunk/rostests/kmtests/ntos_fsrtl/FsRtlTunnel.c [iso-8859-1] Sun May 24 18:14:49 2015
@@ -97,6 +97,13 @@
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 @@
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);
}