libflash/ipmi-hiomap: Cleanup allocation on init failure
libflash/ipmi-hiomap: Cleanup allocation on init failure

Previously we were leaking the memory pointed by ctx if an IPMI error
occurred during protocol initialisation. Make sure we free the memory if
an error occurs.

Signed-off-by: Andrew Jeffery <02e0a999c50b1f88df7a8f5a04e1b76b35ea6a88@aj.id.au>
Signed-off-by: Stewart Smith <ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.ibm.com>

qemu/skiboot,shenki/skiboot,qemu/skiboot,legoater/skiboot,open-power/skiboot,stewart-ibm/skiboot,shenki/skiboot,open-power/skiboot,shenki/skiboot,open-power/skiboot,qemu/skiboot,legoater/skiboot,open-power/skiboot,legoater/skiboot,open-power/skiboot,legoater/skiboot,stewart-ibm/skiboot,shenki/skiboot,legoater/skiboot,shenki/skiboot,stewart-ibm/skiboot,qemu/skiboot,qemu/skiboot