Summary: Fix memory leak of buf in eina_test_simple_xml_parser.c as reported by static analysis tool, Cppcheck.
Reviewers: singh.amitesh, Hermet, jpeg
Reviewed By: jpeg
Subscribers: alok25, mvsovani, sachin.dev, cedric
Differential Revision: https://phab.enlightenment.org/D3371
ck_assert_str_eq(out, buf);
free(out);
eina_simple_xml_node_root_free(root);
- free(buf);
}
+ free(buf);
}
}
fclose(f);
EINA_TRUE,
eina_simple_xml_parser_parse_with_custom_callback_tag_cb,
&parse_current_state);
- free(buf);
fail_if(parse_current_state != simple_xml_parser_current_state_end);
}
+ free(buf);
}
}