fix load_super/free_super mismatch in util.c
[thirdparty/mdadm.git] / util.c
diff --git a/util.c b/util.c
index bd46999..dbe4640 100644 (file)
--- a/util.c
+++ b/util.c
@@ -818,7 +818,7 @@ struct supertype *guess_super(int fd)
                st->ss = NULL;
                rv = superlist[bestsuper]->load_super(st, fd, NULL);
                if (rv == 0) {
-                       ss->free_super(st);
+                       superlist[bestsuper]->free_super(st);
                        return st;
                }
        }