From 9b25065810fca6e0238c4c98ec3c09ba4d8abc35 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Wed, 12 Aug 2009 18:45:51 +0200 Subject: Free config and regex sets before exiting. Free the regex sets array after freeing compiled pcre patterns. --- config.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config.c') diff --git a/config.c b/config.c index 437d993..fbcc935 100644 --- a/config.c +++ b/config.c @@ -45,3 +45,6 @@ int cfg_init() { return 1; } +void cfg_free() { + config_destroy(&config); +} -- cgit v1.2.3