Make this less 'passive voice'

e.g. "This is done to avoid memory leaks."