Fixed a memory leak when using kryn with reactphp.