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);