
Currently g_instances_added is not decremented correctly in scenarios where IPA callback fails. This prevents freeing the g_ipa_config memory during deinit, causing a memory leak. This change will ensure that the instance count is decremented correctly as part of deinit in both success and failure scenarios. Change-Id: I40fd14f6f441d1314eebf8c5d33616c824398a6f CRs-Fixed: 3472760