X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib%2Frx.c;h=616d82452a4847277d40e71e15ff0ab76874d070;hp=772fa8de017df401e61c7d500ddd6e0c6476cb5c;hb=b3cb6ed8d36c550a2e589910ce51bbc8352ff57c;hpb=8e037c67a88cb4680c4391134c578e3b55a80f8a diff --git a/lib/rx.c b/lib/rx.c index 772fa8d..616d824 100644 --- a/lib/rx.c +++ b/lib/rx.c @@ -16,10 +16,10 @@ #include "str.h" rx_t *rx_compile (const char *s, int flags) { - rx_t *pp = mem_calloc (1, sizeof (rx_t)); + rx_t *pp = p_new(rx_t, 1); pp->pattern = str_dup (s); - pp->rx = mem_calloc (1, sizeof (regex_t)); + pp->rx = p_new(regex_t, 1); if (REGCOMP(pp->rx, NONULL (s), flags) != 0) rx_free (&pp);