Fixes #6 by freeing the memory allocated by realpath(const char *, NULL)
Merge pull request #8 from mmaraya/master

Fixes #6 by freeing the memory allocated by realpath(const char *, NULL)