Don't close a wtap that you don't have open in the first place.
Change-Id: I4d9d539957d06cb3568df287eb36ecc34677373f Reviewed-on: https://code.wireshark.org/review/21170 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
3fac48da68
commit
c9bb6b8282
|
@ -1906,7 +1906,8 @@ clean_exit:
|
||||||
wtap_block_array_free(shb_hdrs);
|
wtap_block_array_free(shb_hdrs);
|
||||||
wtap_block_array_free(nrb_hdrs);
|
wtap_block_array_free(nrb_hdrs);
|
||||||
g_free(idb_inf);
|
g_free(idb_inf);
|
||||||
wtap_close(wth);
|
if (wth != NULL)
|
||||||
|
wtap_close(wth);
|
||||||
wtap_cleanup();
|
wtap_cleanup();
|
||||||
free_progdirs();
|
free_progdirs();
|
||||||
#ifdef HAVE_PLUGINS
|
#ifdef HAVE_PLUGINS
|
||||||
|
|
Loading…
Reference in New Issue