Sfoglia il codice sorgente

Fix possible memory leaks

Fix #18
master
Siwen Yu 6 anni fa
committed by ooxi
parent
commit
8297961519
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +2
    -0
      src/xml.c

+ 2
- 0
src/xml.c Vedi File

@@ -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;


Caricamento…
Annulla
Salva