- Removed even more warnings.
[tinc] / src / connlist.c
index 2965ced..105049e 100644 (file)
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id: connlist.c,v 1.1.2.10 2000/10/29 00:02:17 guus Exp $
+    $Id: connlist.c,v 1.1.2.13 2000/11/04 11:49:56 guus Exp $
 */
 
+#include "config.h"
+
+#include <stdio.h>
 #include <syslog.h>
 
 #include "net.h"       /* Don't ask. */
+#include "netutl.h"
 #include "config.h"
 #include "conf.h"
 #include <utils.h>
@@ -64,6 +68,8 @@ cp
     free(p->cipher_pktkey);
   if(p->buffer)
     free(p->buffer);
+  if(p->config)
+    clear_config(&p->config);
   free(p);
 cp
 }