Stop potential leak in realpath.

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>