Check that we free memory when the object gets destroyed. We don't free the handle right now and maybe some other string allocation.