hdata: Fix memory leak
hdata: Fix memory leak

Fix leak and avoid repeated call to the same function

Signed-off-by: Neelesh Gupta <0c847490c0192d1430997c36c35afbb478c33ca8@linux.vnet.ibm.com>
Reviewed-by: Vasant Hegde <a6d753843573f7bfed5075c1e875b0be8007a0ab@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.vnet.ibm.com>

shenki/skiboot,legoater/skiboot,csmart/skiboot,mikey/skiboot,qemu/skiboot,mikey/skiboot,open-power/skiboot,shenki/skiboot,open-power/skiboot,ddstreet/skiboot,legoater/skiboot,qemu/skiboot,qemu/skiboot,qemu/skiboot,csmart/skiboot,stewart-ibm/skiboot,open-power/skiboot,open-power/skiboot,shenki/skiboot,shenki/skiboot,stewart-ibm/skiboot,csmart/skiboot,apopple/skiboot,open-power/skiboot,stewart-ibm/skiboot,legoater/skiboot,legoater/skiboot,ddstreet/skiboot,legoater/skiboot,mikey/skiboot,apopple/skiboot,apopple/skiboot,qemu/skiboot,ddstreet/skiboot,shenki/skiboot