[LIBREPORT PATCH] do not leak file rhbz#997871