# include "config.h"
#endif
+#include <lib-lib/mem.h>
+
#include "mutt.h"
#include "recvattach.h"
#include "mutt_curses.h"
static void mix_free_remailer (REMAILER ** r)
{
- mem_free (&(*r)->shortname);
- mem_free (&(*r)->addr);
- mem_free (&(*r)->ver);
+ p_delete(&(*r)->shortname);
+ p_delete(&(*r)->addr);
+ p_delete(&(*r)->ver);
- mem_free (r);
+ p_delete(r);
}
/* parse the type2.list as given by mixmaster -T */
for (i = 0; type2_list[i]; i++)
mix_free_remailer (&type2_list[i]);
- mem_free (type2_list);
+ p_delete(type2_list);
}
int op;
int i, j;
- char *t;
+ const char *t;
if (!(type2_list = mix_type2_list (&ttll))) {
mutt_error _("Can't get mixmaster's type2.list!");
}
mix_free_type2_list (&type2_list);
- mem_free (&coords);
- mem_free (&chain);
+ p_delete(&coords);
+ p_delete(&chain);
}
/* some safety checks before piping the message to mixmaster */