efivars: memory leak on error in create_efivars_bin_attributes()
authorDan Carpenter <error27@gmail.com>
Fri, 18 Mar 2011 07:12:14 +0000 (10:12 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 19 Apr 2011 23:45:50 +0000 (16:45 -0700)
commit051d51bc6a867d9466a975e4d7ca51b21a9c2c4e
tree3ff593b4ef7c9372f79d4251cef45f3a5dfde0a5
parentbcdd323b893ad3c9b7ef26b5e4a0bef974238501
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: Dan Carpenter <error27@gmail.com>
Acked-by: Mike Waychison <mikew@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/firmware/efivars.c