pcapng: free up the section table when closing the file.

Change-Id: Iad70785b2baf178c16d1d333479590d3909150e5
Reviewed-on: https://code.wireshark.org/review/36983
Reviewed-by: Guy Harris <gharris@sonic.net>
This commit is contained in:
Guy Harris 2020-04-30 01:16:33 -07:00 committed by Guy Harris
parent 1e80803aa1
commit 67f6809d8b
1 changed files with 1 additions and 0 deletions

View File

@ -3088,6 +3088,7 @@ pcapng_close(wtap *wth)
pcapng_t *pcapng = (pcapng_t *)wth->priv;
pcapng_debug("pcapng_close: closing file");
g_array_free(pcapng->sections, TRUE);
g_array_free(pcapng->interfaces, TRUE);
}