fix a couple of leaks in the bindings