Fixing potential memory leak

using indirect path on the gpx filename, it is possible to leak memory,
e.g.:
$ ./parser ../<cwd>/sample.gpx