summaryrefslogtreecommitdiff
path: root/Examine.c
diff options
context:
space:
mode:
Diffstat (limited to 'Examine.c')
-rw-r--r--Examine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Examine.c b/Examine.c
index 6131e367..b333281d 100644
--- 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;