Duh: remember to #include <stdlib.h> to pick up declarations for

malloc() and free().
This commit is contained in:
Bill Paul 1996-02-25 19:25:23 +00:00
parent d6673cba8a
commit 66c201eaba
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=14248

View File

@ -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;
}