mirror of
https://github.com/opnsense/src.git
synced 2026-03-27 21:23:11 -04:00
Duh: remember to #include <stdlib.h> to pick up declarations for
malloc() and free().
This commit is contained in:
parent
d6673cba8a
commit
66c201eaba
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue