Whamcloud - gitweb
LU-7666 llog: use correct size when freeing log header
[fs/lustre-release.git] / lustre / obdclass / llog_cat.c
index 9f1f4ea..46fbd36 100644 (file)
@@ -101,7 +101,7 @@ static int llog_cat_new_log(const struct lu_env *env,
                /* If llog object is remote and creation is failed, lgh_hdr
                 * might be left over here, free it first */
                LASSERT(!llog_exist(loghandle));
-               OBD_FREE_PTR(loghandle->lgh_hdr);
+               OBD_FREE_LARGE(loghandle->lgh_hdr, loghandle->lgh_hdr_size);
                loghandle->lgh_hdr = NULL;
        }