summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1996-05-07 20:51:52 +0000
committerwpaul <wpaul@FreeBSD.org>1996-05-07 20:51:52 +0000
commitc7584211d56c8f6c099ee4b612754113d399cffa (patch)
treeafa4fcb74c8b7a420e6113c72c6c2b26348e4cb5
parentaafe5f318cfc27e49093eb1f3cbe0dad0a599f7a (diff)
downloadFreeBSD-src-c7584211d56c8f6c099ee4b612754113d399cffa.zip
FreeBSD-src-c7584211d56c8f6c099ee4b612754113d399cffa.tar.gz
Grrrr... yet another variation on Murphy's Law: the best way to find
bugs in your code is to put it in the -stable branch. (Corollary: the day you discover the bug is the day the Internet decides to route your telnet session to the repository box via Zimbabwe.) Remove one bogus free(result) (from _havemaster()) that slipped by me. Flagged by: phkmalloc Pointed out to me by: Stefan Esser
-rw-r--r--lib/libc/gen/getpwent.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c
index 052d150..3dd7afb 100644
--- a/lib/libc/gen/getpwent.c
+++ b/lib/libc/gen/getpwent.c
@@ -653,7 +653,6 @@ _havemaster(char *_pw_yp_domain)
if (yp_first(_pw_yp_domain, "master.passwd.byname",
&key, &keylen, &result, &resultlen)) {
- free(result);
return 0;
}
free(result);
OpenPOWER on IntegriCloud