dlm: possible memory leak on error path in create_lkb()

Fixes 3d6aa675ff ("dlm: keep lkbs in idr")
Cc: stable@kernel.org # 3.1

Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: David Teigland <teigland@redhat.com>
This commit is contained in:
Vasily Averin 2018-11-15 13:18:18 +03:00 committed by David Teigland
parent b982896cdb
commit 23851e978f
1 changed files with 1 additions and 0 deletions

View File

@ -1209,6 +1209,7 @@ static int create_lkb(struct dlm_ls *ls, struct dlm_lkb **lkb_ret)
if (rv < 0) {
log_error(ls, "create_lkb idr error %d", rv);
dlm_free_lkb(lkb);
return rv;
}