diff options
author | wpaul <wpaul@FreeBSD.org> | 1995-04-15 03:11:55 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1995-04-15 03:11:55 +0000 |
commit | faeb7168709de647ce9451abf06426670ebe52e0 (patch) | |
tree | 1b0a3dab7d454f3f636aed9729eb1228067b0a07 /lib | |
parent | f3c66b4569b512f27b183c261ad0e426de853937 (diff) | |
download | FreeBSD-src-faeb7168709de647ce9451abf06426670ebe52e0.zip FreeBSD-src-faeb7168709de647ce9451abf06426670ebe52e0.tar.gz |
Head off potential core dump in _havemaster() (we don't need to free any
memory here: the underlying YP routines handle this one for us).
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/getpwent.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c index b8f1b19..4cfe11a 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; } |