Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15941986 authored by Gabriel Biren's avatar Gabriel Biren Committed by Automerger Merge Worker
Browse files

Merge "Free version buffer in the Vendor HAL's XML parsing logic." into udc-dev am: dcd883ff

parents ee859749 dcd883ff
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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);
}