diff options
author | wpaul <wpaul@FreeBSD.org> | 1996-02-25 19:25:23 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1996-02-25 19:25:23 +0000 |
commit | b4af7453454ec17e34e2b367c32ca50c7b5df8e7 (patch) | |
tree | 5d15d18a3c6ca57a0cac5193b115a0fee46b6298 /usr.sbin/ypserv | |
parent | f30c04e337e1c48c605977b79772256e498c8989 (diff) | |
download | FreeBSD-src-b4af7453454ec17e34e2b367c32ca50c7b5df8e7.zip FreeBSD-src-b4af7453454ec17e34e2b367c32ca50c7b5df8e7.tar.gz |
Duh: remember to #include <stdlib.h> to pick up declarations for
malloc() and free().
Diffstat (limited to 'usr.sbin/ypserv')
-rw-r--r-- | usr.sbin/ypserv/yp_access.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/ypserv/yp_access.c b/usr.sbin/ypserv/yp_access.c index 7efb880..1d78def 100644 --- a/usr.sbin/ypserv/yp_access.c +++ b/usr.sbin/ypserv/yp_access.c @@ -31,6 +31,7 @@ * */ +#include <stdlib.h> #include <rpc/rpc.h> #include <rpcsvc/yp.h> #include <rpcsvc/yppasswd.h> @@ -48,7 +49,7 @@ #endif #ifndef lint -static const char rcsid[] = "$Id$"; +static const char rcsid[] = "$Id: yp_access.c,v 1.3 1996/02/24 22:01:41 wpaul Exp $"; #endif extern int debug; @@ -102,8 +103,6 @@ void load_securenets() if (securenets != NULL) { while(securenets) { tmp = securenets->next; - free(securenets->net); - free(securenets->mask); free(securenets); securenets = tmp; } |