Fixed leaking resource "data"

Call to wbxml_free(data); missing at many return places.
It can lead to memory leaks.