forked from osmocom/wireshark
NULL check GArray to prevent assertion.
Change-Id: I52de10a1d96b6ef7294ad8be9ec9195defca4b53 Reviewed-on: https://code.wireshark.org/review/14266 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Graham Bloice <graham.bloice@trihedral.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
parent
9f27e5d7d1
commit
9063aca615
|
@ -169,7 +169,8 @@ void wtap_optionblock_free(wtap_optionblock_t block)
|
|||
wtap_optionblock_free(if_stats);
|
||||
}
|
||||
|
||||
g_array_free(mand->interface_statistics, TRUE);
|
||||
if (mand->interface_statistics)
|
||||
g_array_free(mand->interface_statistics, TRUE);
|
||||
}
|
||||
|
||||
g_free(block->mandatory_data);
|
||||
|
|
Loading…
Reference in New Issue