Commit 051d51bc authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman

efivars: memory leak on error in create_efivars_bin_attributes()

This is a cut and paste bug.  We intended to free ->del_var and
->new_var but we only free ->new_var.
Signed-off-by: default avatarDan Carpenter <>
Acked-by: default avatarMike Waychison <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent bcdd323b
......@@ -677,8 +677,8 @@ create_efivars_bin_attributes(struct efivars *efivars)
return 0;
efivars->new_var = NULL;
efivars->del_var = NULL;
efivars->new_var = NULL;
return error;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment