diff --git a/hdstrack2.c b/hdstrack2.c index 6998ea1..bed68f7 100644 --- a/hdstrack2.c +++ b/hdstrack2.c @@ -931,6 +931,9 @@ static char *hds2AbsPath( const char *path, int *status ){ emsRepf( " ", "Failed to allocate %zu bytes of memory", status, dlen+flen+2 ); } + +/* Free memory allocated by realpath. */ + free(absdir); } /* Free the local copy of the supplied path. */