memory leak when we open a data-source object that already exists.
Fix a couple of memory leaks in the data-source cursor create path.
Clean up a couple of memory leaks.