X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/320598d40fb55001274c097d4a1a09c31b8d0335..d7b6f0d1cda54fe872145ab6ee20bf5bc131be8d:/clients/disorder.c diff --git a/clients/disorder.c b/clients/disorder.c index d2e3512..0ce20aa 100644 --- a/clients/disorder.c +++ b/clients/disorder.c @@ -34,6 +34,7 @@ #include #include #include +#include #include "configuration.h" #include "syscalls.h" @@ -502,6 +503,9 @@ int main(int argc, char **argv) { struct vector args; mem_init(); + /* garbage-collect PCRE's memory */ + pcre_malloc = xmalloc; + pcre_free = xfree; if(!setlocale(LC_CTYPE, "")) fatal(errno, "error calling setlocale"); while((n = getopt_long(argc, argv, "hVc:dHL", options, 0)) >= 0) { switch(n) {