Fix a possible leak.

Can definitely see this happening.