summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-11-09 22:48:31 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-11-09 22:48:31 +0100
commit678f9ce8939c672cb473c75b8b56f48b146957c6 (patch)
tree1b7faf07511579d88f618ac16a0a43d7b18077a5
parent3c14a9e2c368a477e22aac935c417314213b797c (diff)
Free all regexes in rs_free().
-rw-r--r--regexset.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/regexset.c b/regexset.c
index 5608d12..e69b5c7 100644
--- a/regexset.c
+++ b/regexset.c
@@ -161,6 +161,17 @@ void rs_free() {
pcre_free(regexes[i].kick);
if(regexes[i].kick_e)
pcre_free(regexes[i].kick_e);
+ pcre_free(regexes[i].nick_changed);
+ if(regexes[i].nick_changed_e)
+ pcre_free(regexes[i].nick_changed_e);
+ pcre_free(regexes[i].log_opened);
+ if(regexes[i].log_opened_e)
+ pcre_free(regexes[i].log_opened_e);
+ if(regexes[i].day_changed) {
+ pcre_free(regexes[i].day_changed);
+ if(regexes[i].day_changed_e)
+ pcre_free(regexes[i].day_changed_e);
+ }
}
free(regexes);
regexes = NULL;