The U.S. Flag Code allows you to repair a flag as long as the fix is neat and does not drastically alter the flag's required rectangular proportions. If the rest of the fabric is bright and strong, repairing it is an excellent way to extend its service life.
Otherwise American Legion, VFW & scouts can properly retire a flag