Bug fix in file  src/generic_agent.c

...freport_html in function called: ReportContext *OpenCompilationReportFiles(const char *fname)

Redmine issue: 1931