mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
Merge "Free version buffer in the Vendor HAL's XML parsing logic." into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
dcd883ff85
@@ -128,7 +128,7 @@ bool WifiLegacyHalFactory::initLinkedHalFunctionTable(wifi_hal_fn* hal_fn) {
|
||||
void WifiLegacyHalFactory::initVendorHalsDescriptorList() {
|
||||
xmlDocPtr xml;
|
||||
xmlNodePtr node, cnode;
|
||||
char* version;
|
||||
char* version = NULL;
|
||||
std::string path;
|
||||
xmlChar* value;
|
||||
wifi_hal_lib_desc desc;
|
||||
@@ -200,6 +200,10 @@ void WifiLegacyHalFactory::initVendorHalsDescriptorList() {
|
||||
}
|
||||
skip:
|
||||
xmlFreeDoc(xml);
|
||||
if (version) {
|
||||
xmlFree(version);
|
||||
version = NULL;
|
||||
}
|
||||
}
|
||||
::closedir(dirPtr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user