Don't leak memory if an error occurs getting the file's channel layout