In llog_cat_new_log() pass the allocated size of the llog header to
OBD_FREE_LARGE().
Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ib8a2ae8608918a9913b01dda967365cd9f7a3925
Reviewed-on: http://review.whamcloud.com/18009
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: wangdi <di.wang@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
/* 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;
}