Deallocating command structures

An application calls ct_cmd_drop to deallocate a command structure. It is an error to deallocate a command structure that has pending results or an open cursor.