When opening simple tables, the table code calls the cursor open
function recursively (on the underlying data source), in which case the
application's URI has already been copied, don't copy it again and leak
the memory. Reference #1234, #1235.