soc: qcom: service-locator: Free memory in case of error

Free previously allocated memory in case of error to avoid
memory leak.

CRs-Fixed: 2022322
Change-Id: I297bd6ee1d75c039cacf8409b324c119f1b86875
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
1 file changed