nonstatic function for atexit, check if atexit fails
[mmh] / uip / mhlist.c
index 8c7e51d..cf55c4c 100644 (file)
@@ -92,7 +92,9 @@ main(int argc, char **argv)
        struct msgs *mp = NULL;
        CT ct, *ctp;
 
-       atexit(freects_done);
+       if (atexit(freects_done) != 0) {
+               adios(NULL, "atexit failed");
+       }
 
        setlocale(LC_ALL, "");
        invo_name = mhbasename(argv[0]);