X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/763d5e6ad88ef3ba1cd1d7742d060e4f1e54c6b8..1f10f780da61a9403d52d9ce6eb4e5144df3c678:/clients/disorder.c diff --git a/clients/disorder.c b/clients/disorder.c index f7b4130..0ce20aa 100644 --- a/clients/disorder.c +++ b/clients/disorder.c @@ -34,6 +34,7 @@ #include #include #include +#include #include "configuration.h" #include "syscalls.h" @@ -501,7 +502,10 @@ int main(int argc, char **argv) { int status = 0; struct vector args; - mem_init(1); + 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) {