Fixed potential leak.