What does this spring do???

Thanks!....I guess the broken end hooked over the groove in that tab sticking out. Why is it needed? My e-brake works just fine w/o it.