Stop raising ERR_R_MALLOC_FAILURE in most places
[openssl.git] / crypto / init.c
index 983d76e457d8fd2a12f385447ba50cc1813c8387..a224542e03eaaa0764cbe727643e040b22abe305 100644 (file)
@@ -706,10 +706,8 @@ int OPENSSL_atexit(void (*handler)(void))
     }
 #endif
 
-    if ((newhand = OPENSSL_malloc(sizeof(*newhand))) == NULL) {
-        ERR_raise(ERR_LIB_CRYPTO, ERR_R_MALLOC_FAILURE);
+    if ((newhand = OPENSSL_malloc(sizeof(*newhand))) == NULL)
         return 0;
-    }
 
     newhand->handler = handler;
     newhand->next = stop_handlers;