Do not leave a file opened in case of failure in app_generate_fix
Do not leave a file opened in case of failure in app_generate_fix

Furthermore, do not close the file descriptor in case it is stdout any more.

Reported by Steve Grubb, thanks!

jan-cerny/openscap,redhatrises/openscap,postfix/openscap,redhatrises/openscap,openprivacy/openscap,OpenSCAP/openscap,postfix/openscap,jan-cerny/openscap,openprivacy/openscap,ybznek/openscap,mpreisler/openscap,mpreisler/openscap,jan-cerny/openscap,Hexadorsimal/openscap,ybznek/openscap,Hexadorsimal/openscap,redhatrises/openscap,openprivacy/openscap,mpreisler/openscap,redhatrises/openscap,OpenSCAP/openscap,isimluk/openscap,jan-cerny/openscap,postfix/openscap,redhatrises/openscap,isimluk/openscap,openprivacy/openscap,mpreisler/openscap,postfix/openscap,isimluk/openscap,jan-cerny/openscap,OpenSCAP/openscap,redhatrises/openscap,Hexadorsimal/openscap,ybznek/openscap,OpenSCAP/openscap,Hexadorsimal/openscap,jan-cerny/openscap,openprivacy/openscap,postfix/openscap,isimluk/openscap,OpenSCAP/openscap,mpreisler/openscap,openprivacy/openscap,isimluk/openscap,postfix/openscap,mpreisler/openscap,ybznek/openscap,ybznek/openscap,OpenSCAP/openscap,isimluk/openscap,ybznek/openscap,Hexadorsimal/openscap,Hexadorsimal/openscap