Freed unfreed memory in util.c, method util_alloc_realpath__

Freed unfreed memory in util.c, method util_alloc_realpath__