]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super-intel.c
fix examine_brief segfault
[thirdparty/mdadm.git] / super-intel.c
index 24827d0b20261f865167e7dd62b5d457aea48564..7b04a79ee26975facb7fe794bea4ec82214d6241 100644 (file)
@@ -2196,6 +2196,8 @@ static int load_super_imsm(struct supertype *st, int fd, char *devname)
                return 0;
 #endif
 
                return 0;
 #endif
 
+       free_super_imsm(st);
+
        super = alloc_super(0);
        if (!super) {
                fprintf(stderr,
        super = alloc_super(0);
        if (!super) {
                fprintf(stderr,