Fixed memory leak due to realpath allocation.

l2man