X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fliblustre%2Fsuper.c;h=3f3788a7461e75b03e7a5d990f2cbe32e9a0c840;hp=9e6972f48580271758a14699855702fbf6c77818;hb=218322d65b7d33ea185c7186b432f684e440eada;hpb=0515ccaef79c0ce8af1fbc918803a1638f148674 diff --git a/lustre/liblustre/super.c b/lustre/liblustre/super.c index 9e6972f..3f3788a 100644 --- a/lustre/liblustre/super.c +++ b/lustre/liblustre/super.c @@ -2053,7 +2053,8 @@ out_free: OBD_FREE(osc, strlen(lprof->lp_dt) + instlen + 2); if (mdc) OBD_FREE(mdc, strlen(lprof->lp_md) + instlen + 2); - OBD_FREE(sbi, sizeof(*sbi)); + if (err != 0) + OBD_FREE(sbi, sizeof(*sbi)); liblustre_wait_idle(); return err; }