Check if configuration data exists before freeing memory.

This commit is contained in:
jmmv 2003-03-04 19:28:59 +00:00
parent d51fdbef63
commit 73b21378a4

View File

@ -1,4 +1,4 @@
/* $NetBSD: config.c,v 1.1 2003/03/04 14:33:55 jmmv Exp $ */
/* $NetBSD: config.c,v 1.2 2003/03/04 19:28:59 jmmv Exp $ */
/*
* Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: config.c,v 1.1 2003/03/04 14:33:55 jmmv Exp $");
__RCSID("$NetBSD: config.c,v 1.2 2003/03/04 19:28:59 jmmv Exp $");
#endif /* not lint */
#include <sys/time.h>
@ -247,5 +247,6 @@ config_read(char *conffile, int opt)
void
config_free(void)
{
block_free(Global);
if (Global != NULL)
block_free(Global);
}