Valgrind

This PR incorporates the work from @akva2: https://github.com/OPM/opm-parser/issues/98

FIxed all valgrind warnings.