X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=rfc3676.c;h=d359f250dc2ba56d649b3745b82f4708ea22fa4f;hb=23002a877577341cfd68687e58348e0ca01b1ac5;hp=f6ca09908cbb8e06a8d5125709c3afb471166943;hpb=2a8949b88182e32a1adf7e61659112477ee7282d;p=apps%2Fmadmutt.git diff --git a/rfc3676.c b/rfc3676.c index f6ca099..d359f25 100644 --- a/rfc3676.c +++ b/rfc3676.c @@ -20,6 +20,8 @@ #include #include +#include + #include "mutt.h" #include "mutt_curses.h" #include "ascii.h" @@ -136,7 +138,7 @@ static void print_flowed_line (char *line, STATE * s, int ql) { int rfc3676_handler (BODY * a, STATE * s) { int bytes = a->length; char buf[LONG_STRING]; - char *curline = mem_malloc(1); + char *curline = p_new(char, 1); char *t = NULL; unsigned int curline_len = 1, quotelevel = 0, newql = 0; @@ -222,7 +224,7 @@ int rfc3676_handler (BODY * a, STATE * s) { } } - mem_free (&curline); + p_delete(&curline); return (0); }