The SCA$QUERY_CLEANUP routine cleans up an SCA query context, freeing all dynamic memory associated with the query. This routine will become obsolete in a future version of SCA.