Skip to content

Commit 79e0bb9

Browse files
committed
Free memory allocated by realpath
1 parent 735b8b8 commit 79e0bb9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hdstrack2.c

+3
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,9 @@ static char *hds2AbsPath( const char *path, int *status ){
931931
emsRepf( " ", "Failed to allocate %zu bytes of memory", status,
932932
dlen+flen+2 );
933933
}
934+
935+
/* Free memory allocated by realpath. */
936+
free(absdir);
934937
}
935938

936939
/* Free the local copy of the supplied path. */

0 commit comments

Comments
 (0)