Commit 2b37ec2d authored by Gildas Bazin's avatar Gildas Bazin

* modules/misc/xml/xtag.c: fixed memory leak.

parent c6039822
...@@ -203,6 +203,7 @@ static xml_reader_t *ReaderCreate( xml_t *p_xml, stream_t *s ) ...@@ -203,6 +203,7 @@ static xml_reader_t *ReaderCreate( xml_t *p_xml, stream_t *s )
return 0; return 0;
} }
free( p_buffer );
p_reader = malloc( sizeof(xml_reader_t) ); p_reader = malloc( sizeof(xml_reader_t) );
p_reader->p_sys = malloc( sizeof(xml_reader_sys_t) ); p_reader->p_sys = malloc( sizeof(xml_reader_sys_t) );
p_reader->p_sys->p_root = p_root; p_reader->p_sys->p_root = p_root;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment