Fix memory leak related to charging mode. Fixes: CID#1237447

When using charging_fallback there is a small memory leak, when querying
the usb mode. Found with coverity.

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>