Skip to content

Commit

Permalink
Free memory allocated by realpath
Browse files Browse the repository at this point in the history
  • Loading branch information
grahambell committed Mar 13, 2023
1 parent 735b8b8 commit 79e0bb9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hdstrack2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 79e0bb9

Please sign in to comment.