free some memory

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9265 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2000-12-05 09:05:30 +00:00
parent c714552e16
commit 3fccd646d3

View File

@@ -166,8 +166,10 @@ getifaddrs2(struct ifaddrs **ifap,
}
*ifap = start;
free(buf);
return 0;
error_out:
free(buf);
errno = ret;
return -1;
}