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

Fixes 3d6aa675ff ("dlm: keep lkbs in idr")
Cc: [email protected] # 3.1

Signed-off-by: Vasily Averin <[email protected]>
Signed-off-by: David Teigland <[email protected]>
This commit is contained in:
Vasily Averin 2018-11-15 13:18:18 +03:00 • committed by David Teigland
commit 23851e978f

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;
}