]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Examine.c
fix examine_brief segfault
[thirdparty/mdadm.git] / Examine.c
index f0e98f974d2e58885ebc238cdd796690bf4a9dee..3d0ea8a54ac336ae8bcf8ca844501ce58e37a9cc 100644 (file)
--- a/Examine.c
+++ b/Examine.c
@@ -114,10 +114,8 @@ int Examine(mddev_dev_t devlist, int brief, int export, int scan,
                                ap->st = st;
                                arrays = ap;
                                st->ss->getinfo_super(st, &ap->info);
-                       } else {
+                       } else
                                st->ss->getinfo_super(st, &ap->info);
-                               st->ss->free_super(st);
-                       }
                        if (!(ap->info.disk.state & (1<<MD_DISK_SYNC)))
                                ap->spares++;
                        d = dl_strdup(devlist->devname);