X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fburst.c;h=eb2fb7a784eb5f5174f2029a3a505e86f2aded77;hb=d4c34b4439a9dbd89664de460ed37ecddc260fb1;hp=591d7f4b508c6404c9a04e55fb27cd95eb156c9e;hpb=850059f6637354d31129f303151f9f7d30514c9e;p=mmh diff --git a/uip/burst.c b/uip/burst.c index 591d7f4..eb2fb7a 100644 --- a/uip/burst.c +++ b/uip/burst.c @@ -117,10 +117,7 @@ main(int argc, char **argv) exit(EX_SOFTWARE); seq_setprev(mp); /* set the previous-sequence */ - smsgs = (struct smsg *) - mh_xcalloc((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; @@ -139,7 +136,7 @@ main(int argc, char **argv) } } - free(smsgs); + mh_free0(&smsgs); context_replace(curfolder, folder); /*