summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2019-04-18 11:01:37 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2019-05-24 16:29:12 +0200
commit00ec5f1f6d657ac1649ad21c60dfea3132d479b2 (patch)
tree8f10ed5a2567f0b3a471e11175f4f1e73e5b0157 /lib
parent9cb51ee3170262d8720d47708f483b4b38fd38e6 (diff)
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 <jonathan.aillet@iot.bzh>
Diffstat (limited to 'lib')
-rw-r--r--lib/4a-hal-utilities/4a-hal-utilities-data.c3
1 files changed, 3 insertions, 0 deletions
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);