aboutsummaryrefslogtreecommitdiffstats
path: root/4a-hal/4a-hal-utilities
diff options
context:
space:
mode:
Diffstat (limited to '4a-hal/4a-hal-utilities')
-rw-r--r--4a-hal/4a-hal-utilities/4a-hal-utilities-data.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/4a-hal/4a-hal-utilities/4a-hal-utilities-data.c b/4a-hal/4a-hal-utilities/4a-hal-utilities-data.c
index 11721f2..0001093 100644
--- a/4a-hal/4a-hal-utilities/4a-hal-utilities-data.c
+++ b/4a-hal/4a-hal-utilities/4a-hal-utilities-data.c
@@ -93,21 +93,6 @@ uint8_t HalUtlRemoveSelectedHalFromList(struct HalMgrData *HalMgrGlobalData, str
}
}
- if(matchingApi->apiName)
- free(matchingApi->apiName);
-
- if(matchingApi->sndCard)
- free(matchingApi->sndCard);
-
- if(matchingApi->author)
- free(matchingApi->author);
-
- if(matchingApi->version)
- free(matchingApi->version);
-
- if(matchingApi->date)
- free(matchingApi->date);
-
free(matchingApi);
return 0;
@@ -197,11 +182,8 @@ void HalUtlRemoveHalMgrData(struct HalMgrData *HalMgrGlobalData)
if(HalMgrGlobalData->first)
HalUtlRemoveAllHalFromList(HalMgrGlobalData);
- if(HalMgrGlobalData->apiName)
- free(HalMgrGlobalData->apiName);
-
- if(HalMgrGlobalData->info)
- free(HalMgrGlobalData->info);
+ free(HalMgrGlobalData->apiName);
+ free(HalMgrGlobalData->info);
free(HalMgrGlobalData);
} \ No newline at end of file