tcsh-org / tcsh

This is a read-only mirror of the tcsh code repository.
https://www.tcsh.org/
Other
229 stars 42 forks source link

[asan] Fix memory leak in gethost.c #81

Closed gregorynisbet-google closed 8 months ago

gregorynisbet-google commented 8 months ago

Fix a harmless memory leak in gethost.c. This enables tcsh as a whole to compile with ASAN enabled.

The invocation below will fail without this patch.

$ ./configure CFLAGS=' -g -fsanitize=address ' LDFLAGS=' -fsanitize=address ' && make

zoulasc commented 8 months ago

committed, thanks!