Fix potential leak