[PATCH 2/3] dinput/tests: Fix some memory leaks (Valgrind).