summaryrefslogtreecommitdiff
path: root/libshouldbeinlibc/localhost.c
AgeCommit message (Collapse)Author
2011-08-20Fix localhost() after memory failureSamuel Thibault
* libshouldbeinlibc/localhost.c (localhost): Free and reset buf when reallocation failed.
2011-08-20fix a realloc-related memory leak in localhost()Jonathan Neuschäfer
* libshouldbeinlibc/localhost.c (localhost): assign the return value of realloc to a temporary variable to avoid losing the old value of buf in the case of realloc failing.
1996-02-18Initial revisionMiles Bader