Python bindings: fixed another free() bug