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:
Michael Mann 2016-03-01 11:33:21 -05:00
parent 9f27e5d7d1
commit 9063aca615
1 changed files with 2 additions and 1 deletions

View File

@ -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);