X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fburst.c;h=eb2fb7a784eb5f5174f2029a3a505e86f2aded77;hb=d4c34b4439a9dbd89664de460ed37ecddc260fb1;hp=37dc9b17d8871c941027fe1c385685dd51fb797c;hpb=cf1205b5cbea2f0cd6ea710ec16c637df85b647c;p=mmh diff --git a/uip/burst.c b/uip/burst.c index 37dc9b1..eb2fb7a 100644 --- a/uip/burst.c +++ b/uip/burst.c @@ -7,6 +7,7 @@ */ #include +#include #include #include #include @@ -116,10 +117,7 @@ main(int argc, char **argv) exit(EX_SOFTWARE); seq_setprev(mp); /* set the previous-sequence */ - smsgs = (struct smsg *) - calloc((size_t) (MAXFOLDER + 2), sizeof(*smsgs)); - if (smsgs == NULL) - adios(EX_OSERR, NULL, "unable to allocate burst storage"); + smsgs = mh_xcalloc(MAXFOLDER + 2, sizeof(*smsgs)); hi = mp->hghmsg + 1; @@ -138,7 +136,7 @@ main(int argc, char **argv) } } - free(smsgs); + mh_free0(&smsgs); context_replace(curfolder, folder); /*