From 03cee47d84c536278f1f0e3bc211f079a4a1279c Mon Sep 17 00:00:00 2001 From: Bill Paul Date: Tue, 7 May 1996 20:51:52 +0000 Subject: [PATCH] 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 --- lib/libc/gen/getpwent.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c index 052d150dc138..3dd7afbda1fb 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);