even if we don't want to close stdout on wtap_dump_close(), we might at least try to flush it
svn path=/trunk/; revision=17326
This commit is contained in:
parent
924cc60125
commit
58d9f6c3b1
|
@ -799,7 +799,10 @@ gboolean wtap_dump_close(wtap_dumper *wdh, int *err)
|
|||
}
|
||||
ret = FALSE;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
/* as we don't close stdout, at least try to flush it */
|
||||
wtap_dump_flush(wdh);
|
||||
}
|
||||
if (wdh->dump.opaque != NULL)
|
||||
g_free(wdh->dump.opaque);
|
||||
g_free(wdh);
|
||||
|
|
Loading…
Reference in New Issue