diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-11-09 22:48:31 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-11-09 22:48:31 +0100 |
commit | 678f9ce8939c672cb473c75b8b56f48b146957c6 (patch) | |
tree | 1b7faf07511579d88f618ac16a0a43d7b18077a5 | |
parent | 3c14a9e2c368a477e22aac935c417314213b797c (diff) |
Free all regexes in rs_free().
-rw-r--r-- | regexset.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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; |