trying a malloc on segment->segname for valgrind as well