#include "config.h"
#endif
+#include <lib-lib/mem.h>
+
#include "rx.h"
#include "mem.h"
}
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) {