]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Examine.c
Remove scattered checks for malloc success.
[thirdparty/mdadm.git] / Examine.c
index 6131e3679e43d087fb2ac355d057ef8d47ba6fff..b333281d07261f61acbe3f46efef73e04dd8ab39 100644 (file)
--- a/Examine.c
+++ b/Examine.c
@@ -130,7 +130,7 @@ int Examine(struct mddev_dev *devlist, int brief, int export, int scan,
                                        break;
                        }
                        if (!ap) {
-                               ap = malloc(sizeof(*ap));
+                               ap = xmalloc(sizeof(*ap));
                                ap->devs = dl_head();
                                ap->next = arrays;
                                ap->spares = 0;