I just killed the shell that it was running in. By then it was consuming one CPU core, and about 2 GB of RAM.
Then i tried again, in a subshell, and let it run...
[user@machine] ~ % zsh
[user@machine] ~ % yes `yes no`
zsh: fatal error: out of heap memory
[user@machine] ~ %
[user@machine] ~ % bash
user@machine:~$ yes `yes no`
bash: xrealloc: ../bash/subst.c:5184: cannot allocate 18446744071562067968 bytes (4297060352 bytes allocated)