Explorar el Código

Fix possible memory leaks

Fix #18
master
Siwen Yu hace 5 años
committed by ooxi
padre
commit
8297961519
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. +2
    -0
      src/xml.c

+ 2
- 0
src/xml.c Ver fichero

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


Cargando…
Cancelar
Guardar