You need to cut the yarn a few inches away from the last stitch/loop and pull the loop. Or pull the tail (end of yarn) through the loop. Then take the tail and thread it through the nearby stitches to anchor it. If you just leave, the tail could get pulled and unravel it all.
sue- knitting heretic