Small memory leak fixed. Valgrind shows now no errors.