fix load_super/free_super mismatch in util.c
authorDan Williams <dan.j.williams@intel.com>
Mon, 5 May 2008 11:55:35 +0000 (21:55 +1000)
committerNeil Brown <neilb@suse.de>
Mon, 5 May 2008 11:55:35 +0000 (21:55 +1000)
From: Dan Williams <dan.j.williams@intel.com>

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
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;
                }
        }