[PATCH] kunit: executor: Simplify string allocation handling