diff options
author | Neil Brown <neilb@suse.de> | 2007-12-14 10:14:00 +0100 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-12-14 10:14:00 +0100 |
commit | df37ffc0393b919ba5607bb48b2eaf2f9a1832d7 (patch) | |
tree | da5119c602aa6e1c40248b5a9c8312aedceaeedb /Kill.c | |
parent | Make sure sysfs_read never succeeds for a non-MD device. (diff) | |
download | mdadm-df37ffc0393b919ba5607bb48b2eaf2f9a1832d7.tar.xz mdadm-df37ffc0393b919ba5607bb48b2eaf2f9a1832d7.zip |
Allow metadata handlers to free their own superblock.
As the metadata handler allocates the superblock, it should free it
too. DDF will have a more complex 'superblock' which needs more complex
freeing.
Diffstat (limited to 'Kill.c')
-rw-r--r-- | Kill.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -66,7 +66,7 @@ int Kill(char *dev, int force, int quiet) if (rv== 0 || (force && rv >= 2)) { mdu_array_info_t info; info.major_version = -1; /* zero superblock */ - free(super); + st->ss->free_super(super); st->ss->init_super(st, &super, &info, 0, "", NULL, NULL); if (st->ss->store_super(st, fd, super)) { if (!quiet) |