fix refleak in the error case
1 file changed