diff options
Diffstat (limited to 'libshouldbeinlibc')
-rw-r--r-- | libshouldbeinlibc/localhost.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libshouldbeinlibc/localhost.c b/libshouldbeinlibc/localhost.c index f21f970d..f0225116 100644 --- a/libshouldbeinlibc/localhost.c +++ b/libshouldbeinlibc/localhost.c @@ -44,6 +44,8 @@ localhost () new = realloc (buf, buf_len); if (! new) { + free (buf); + buf = 0; errno = ENOMEM; return 0; } |