summaryrefslogtreecommitdiff
path: root/lib/libc/gen
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/getpwent.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c
index b8f1b19b0b61..4cfe11ad5c98 100644
--- a/lib/libc/gen/getpwent.c
+++ b/lib/libc/gen/getpwent.c
@@ -557,14 +557,11 @@ static char *_pw_yp_domain;
static int
_havemaster(char *_pw_yp_domain)
{
- int *order;
+ int order;
if (yp_order(_pw_yp_domain, "master.passwd.byname", (int *)&order)) {
- free(order);
return 0;
}
-
- free(order);
return 1;
}