dcom: free data_marshalers and set it to null when we change capture files.

Bug: 16746
Change-Id: I5893979ff90f061c773a5dfcfa1ceb7ee71901ba
Reviewed-on: https://code.wireshark.org/review/38030
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
This commit is contained in:
liningjie 2020-08-02 13:28:43 -07:00 committed by Guy Harris
parent 7d2629d946
commit 48fdd08237
1 changed files with 8 additions and 0 deletions

View File

@ -2203,6 +2203,14 @@ static void dcom_cleanup(void) {
g_list_free(dcom_interfaces);
dcom_interfaces = NULL;
}
/* The data in dcom_marshalers is wmem_file_scoped so there's no need to free
* the data pointers.
*/
if (dcom_marshalers != NULL) {
g_list_free(dcom_marshalers);
dcom_marshalers = NULL;
}
}
void