Whamcloud - gitweb
LU-14004 llite: default lsm update may memory leak 03/40103/5
authorLai Siyao <lai.siyao@whamcloud.com>
Sun, 27 Sep 2020 06:36:57 +0000 (14:36 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 27 May 2021 18:17:30 +0000 (18:17 +0000)
commitcd2ad336177f8f3130de264709dc326349a22b23
tree5975b385af846d280a5211e6cda146f81d515b23
parentf437134e80a1b320e575d774061e693042f3eb4c
LU-14004 llite: default lsm update may memory leak

ll_update_default_lsm_md() should check whether lli_default_lsm_md
is set before setting it to the data from lustre_md, and if it's set,
release the old data to avoid memory leak.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I9c8434c5d62f9fb751788031d6769fd49427c371
Reviewed-on: https://review.whamcloud.com/40103
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/llite_lib.c