db_unixodbc: deallocate the results only after they are processed

	* closes bug #622 on the SF tracker