fail code snipped valgrind