From 00ec5f1f6d657ac1649ad21c60dfea3132d479b2 Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Thu, 18 Apr 2019 11:01:37 +0200 Subject: Add forgotten freeing of hal data Add forgotten freeing of hal data when removing hal from linked list. BUG-AGL: SPEC-2329 Change-Id: Iddef1c1f23be587792907f4ab009a2567f4b7834 Signed-off-by: Jonathan Aillet --- lib/4a-hal-utilities/4a-hal-utilities-data.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/4a-hal-utilities/4a-hal-utilities-data.c b/lib/4a-hal-utilities/4a-hal-utilities-data.c index 26bbd23..215adb2 100644 --- a/lib/4a-hal-utilities/4a-hal-utilities-data.c +++ b/lib/4a-hal-utilities/4a-hal-utilities-data.c @@ -214,6 +214,9 @@ int8_t HalUtlRemoveSelectedHalFromList(struct HalData **halDataList, struct HalD free(matchingHal->date); if(matchingHal->internal) { + free(matchingHal->internalHalData->mixerApiName); + free(matchingHal->internalHalData->prefix); + HalUtlRemoveAllMixerData(&matchingHal->internalHalData->streamsData); HalUtlRemoveAllMixerData(&matchingHal->internalHalData->playbacksData); HalUtlRemoveAllMixerData(&matchingHal->internalHalData->capturesData); -- cgit 1.2.3-korg