Procházet zdrojové kódy

Fix possible memory leaks

Fix #18
master
Siwen Yu před 5 roky
committed by ooxi
rodič
revize
8297961519
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. +2
    -0
      src/xml.c

+ 2
- 0
src/xml.c Zobrazit soubor

@@ -833,6 +833,7 @@ struct xml_node* xml_easy_child(struct xml_node* node, uint8_t const* child_name
/* Two children with the same name
*/
} else {
va_end(arguments);
return 0;
}
}
@@ -841,6 +842,7 @@ struct xml_node* xml_easy_child(struct xml_node* node, uint8_t const* child_name
/* No child with that name found
*/
if (!next) {
va_end(arguments);
return 0;
}
current = next;


Načítá se…
Zrušit
Uložit