ntdll/tests: Fix memory leaks (found by Smatch) and fix a message.