]> diplodocus.org Git - nmh/blobdiff - uip/mhlist.c
Replace `if (p) free(p)' with `mh_xfree(p)'.
[nmh] / uip / mhlist.c
index 34655236e4287b146cb786b5980c1c3dcb54f75c..1ef0b6eeb841c4e4a41263fedf2ad08f78b0f554 100644 (file)
@@ -266,8 +266,7 @@ do_cache:
      * check if message is coming from file
      */
     if (file) {
-       if (!(cts = (CT *) mh_xcalloc ((size_t) 2, sizeof(*cts))))
-           adios (NULL, "out of memory");
+       cts = mh_xcalloc(2, sizeof *cts);
        ctp = cts;
 
        if ((ct = parse_mime (file)))
@@ -299,8 +298,7 @@ do_cache:
                done (1);
        seq_setprev (mp);       /* set the previous-sequence */
 
-       if (!(cts = (CT *) mh_xcalloc ((size_t) (mp->numsel + 1), sizeof(*cts))))
-           adios (NULL, "out of memory");
+       cts = mh_xcalloc(mp->numsel + 1, sizeof *cts);
        ctp = cts;
 
        for (msgnum = mp->lowsel; msgnum <= mp->hghsel; msgnum++) {