Done, it's 934bb475b9a729d0be4d78cd89c1d22d032ee3d7 in
emacs-26 (which I hope is the "release branch" you're talking of
, if it isn't please let me know).

In master I will later address the cause of the error, which is a bug in 
itself, but this needn't make it to the release branch.

João

On Sat, May 12, 2018 at 10:33 AM, Eli Zaretskii <eliz@gnu.org> wrote:
> From: João Távora <joaotavora@gmail.com>
> Cc: emacs-devel@gnu.orgjohnw@gnu.org
> Date: Sat, 12 May 2018 10:01:43 +0100
>
> > If it isn't rare, I wonder how come no one noticed until now that we
> > are littering the filesystem with these
>
> Good question! I guess few people are using it, or they're using it
> with special care, or they are used to the _flymake.c garbage
> anyway because the old flymake used to make it from time to time (though
> not in such a trivial case)

OK, please cherry-pick the commit you made to master to the release
branch.

Thanks.



--
João Távora