battery-gb.c: fix memory leak found by Viresh

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>