fix mem leak on ENOMEM (I known, obscure)