fix refleak in error condition
1 file changed