Added a function that frees the skygw_file_t memory but doesn't close it.

This commit is contained in:
Markus Makela
2015-04-29 18:25:04 +03:00
parent 9ce225c2cb
commit 47e5b12eb8
3 changed files with 33 additions and 1 deletions

View File

@ -2741,7 +2741,10 @@ static void filewriter_done(
for (i=LOGFILE_FIRST; i<=LOGFILE_LAST; i++)
{
id = (logfile_id_t)i;
skygw_file_close(fw->fwr_file[id], true);
if(use_stdout)
skygw_file_close_stdout(fw->fwr_file[id], true);
else
skygw_file_close(fw->fwr_file[id], true);
}
fw->fwr_state = DONE;
case DONE: