army group c , composed of 18 divisions under wilhelm ritter von leeb , was charged with preventing a flanking movement from the east , and with launching small holding attacks against the maginot line and the upper rhine .