read should not have been declared in intern
Adding a valgrind output to prompt serious fixing