X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Frx.c;h=772fa8de017df401e61c7d500ddd6e0c6476cb5c;hb=8e037c67a88cb4680c4391134c578e3b55a80f8a;hp=c0f6982281dd505bf30751a60b06647a27711194;hpb=c25bc063f35aaad6938c2022dae7a283346c2769;p=apps%2Fmadmutt.git diff --git a/lib/rx.c b/lib/rx.c index c0f6982..772fa8d 100644 --- a/lib/rx.c +++ b/lib/rx.c @@ -8,6 +8,8 @@ #include "config.h" #endif +#include + #include "rx.h" #include "mem.h" @@ -25,10 +27,10 @@ rx_t *rx_compile (const char *s, int flags) { } void rx_free (rx_t** p) { - mem_free(&(*p)->pattern); + p_delete(&(*p)->pattern); regfree ((*p)->rx); - mem_free(&(*p)->rx); - mem_free(p); + p_delete(&(*p)->rx); + p_delete(p); } int rx_compare (const rx_t* r1, const rx_t* r2) {