If you want an emergency solution, it is better to take the ripped and loose fabric from the other side. Take them to the inside of the garment. Then pull the little fibers so that you can lose the thread. For safety, add a tape from the inside.