[PATCH] mfplat/tests: Fix segfault while exiting