If protocol open fails, file is immediately freed, so data was leaked. Found by: Coverity scan. CID: 96659