Add info about the patch file to README and get rid of possible memory leak