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:
parent
7d2629d946
commit
48fdd08237
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue