Trendelenberg test is positive in palsy of –