wireshark/ui/gtk
Ahmad Fatoum 9d49e13166 Remove superfluous null-checks before strdup/free
NULL checks were removed for following free functions:

- g_free "If mem is NULL it simply returns"
  https://developer.gnome.org/glib/stable/glib-Memory-Allocation.html#g-free

- g_slist_free(_full)? "NULL is considered to be the empty list"
  https://developer.gnome.org/glib/stable/glib-Singly-Linked-Lists.html

- g_strfreev "If str_array is NULL, this function simply returns."
  https://developer.gnome.org/glib/stable/glib-String-Utility-Functions.html#g-strfreev

- g_slice_free "If mem is NULL, this macro does nothing."
  https://developer.gnome.org/glib/stable/glib-Memory-Slices.html#g-slice-free

- g_match_info_free "not NULL... otherwise does nothing"
  https://developer.gnome.org/glib/stable/glib-Perl-compatible-regular-expressions.html#g-match-info-free

- dfilter_free defined in Wireshark code. Returns early when passed NULL
  epan/dfilter/dfilter.c

They were also removed around calls to g_strdup where applicable:

- g_strdup "If str is NULL it returns NULL."
  https://developer.gnome.org/glib/stable/glib-String-Utility-Functions.html#g-strdup

Change-Id: Ie80c2db89bef531edc3aed7b7c9f654e1d654d04
Reviewed-on: https://code.wireshark.org/review/23406
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: João Valverde <j@v6e.pt>
2017-10-15 12:38:51 +00:00
..
.editorconfig
CMakeLists.txt CMake: Allow user build flags to override default build flags 2017-10-13 21:32:18 +00:00
CMakeListsCustom.txt.example
Makefile.am Integrate LBM UIM Flow dialog into "regular" Flow diagram. 2017-09-20 04:48:40 +00:00
Makefile_custom.common
STATUS.gtk3
about_dlg.c Rename "ws_version_info.h", also .c 2017-09-26 17:32:08 +00:00
about_dlg.h
addr_resolution_dlg.c Attempt to clean up addr_resolv flags by removing DUMMY_ADDRESS_ENTRY 2017-06-19 14:33:09 +00:00
addr_resolution_dlg.h
airpcap_dlg.c Put the HAVE_REMOTE hack into wsutil/wspcap.h, and include that file. 2017-05-11 19:58:15 +00:00
airpcap_dlg.h
airpcap_gui_utils.c Remove superfluous null-checks before strdup/free 2017-10-15 12:38:51 +00:00
airpcap_gui_utils.h
bytes_view.c
bytes_view.h
capture_dlg.c Remove superfluous null-checks before strdup/free 2017-10-15 12:38:51 +00:00
capture_dlg.h plugins: config.h must not be included by public headers 2017-09-06 08:10:56 +00:00
capture_file_dlg.c Remove superfluous null-checks before strdup/free 2017-10-15 12:38:51 +00:00
capture_file_dlg.h
capture_if_details_dlg_win32.c GTK+: Yell at the user less. 2017-01-23 18:53:07 +00:00
capture_if_details_dlg_win32.h
capture_if_dlg.c Fix builds without pcap. 2017-09-14 01:03:02 +00:00
capture_if_dlg.h
capture_info_dlg.c
cfilter_combo_utils.h
color_dlg.c
color_dlg.h
color_edit_dlg.c Remove superfluous null-checks before strdup/free 2017-10-15 12:38:51 +00:00
color_edit_dlg.h
color_utils.c
color_utils.h Put the non-filter part of epan/color_filters.h into wsutil/color.h. 2017-06-10 02:56:31 +00:00
compare_stat.c Have a single IPv6 tap 2017-09-02 16:06:42 +00:00
conversation_hastables_dlg.c Convert conversation hash tables to use wmem. 2017-02-10 13:26:14 +00:00
conversation_hastables_dlg.h
conversations_table.c Switch conversations to use wmem_tree_t instead of (sorted) GSList. 2017-03-06 11:41:54 +00:00
conversations_table.h
dcerpc_stat.c
decode_as_dlg.c Add support for dissector tables of type FT_NONE. 2017-09-16 11:12:52 +00:00
decode_as_dlg.h
dfilter_expr_dlg.c Use glib-compat 2017-03-02 15:20:05 +00:00
dfilter_expr_dlg.h
dissector_tables_dlg.c Add support for dissector tables of type FT_NONE. 2017-09-16 11:12:52 +00:00
dissector_tables_dlg.h
dlg_utils.c
dlg_utils.h
doxygen.cfg.in
drag_and_drop.c Qt: Reject drag and drop if we're capturing. 2017-01-23 01:26:41 +00:00
drag_and_drop.h
edit_packet_comment_dlg.c Rename section comment get/set routines. 2017-07-17 03:38:45 +00:00
edit_packet_comment_dlg.h
expert_comp_dlg.c
expert_comp_dlg.h
expert_comp_table.c Gtk: remove atoi calls and use ws_strtoi functions. 2016-10-26 21:45:03 +00:00
expert_comp_table.h
export_object_dlg.c Enable exporting objects with tshark 2016-12-02 16:07:35 +00:00
export_object_dlg.h Enable exporting objects with tshark 2016-12-02 16:07:35 +00:00
export_pdu_dlg.c
export_pdu_dlg.h
export_sslkeys.c Rename ui_util.h -> ws_ui_util.h 2017-10-15 01:14:26 +00:00
export_sslkeys.h
extcap_gtk.c Remove superfluous null-checks before strdup/free 2017-10-15 12:38:51 +00:00
extcap_gtk.h extcap: add new option type (timestamp). 2016-12-09 04:49:33 +00:00
file_dlg.c A bunch of "{Mac} OS X" -> "macOS" changes. 2017-04-05 19:16:22 +00:00
file_dlg.h
file_import_dlg.c Rename "ws_version_info.h", also .c 2017-09-26 17:32:08 +00:00
file_import_dlg.h
fileset_dlg.c On UN*X, st_ctime is the last status change time, not the creation time. 2016-10-22 05:20:22 +00:00
fileset_dlg.h
filter_autocomplete.c
filter_autocomplete.h
filter_dlg.c Pull the error reporting into {read,save}_filter_list. 2017-04-09 17:57:52 +00:00
filter_dlg.h
filter_expression_save_dlg.c Change display filter button tooltip formatting. 2017-06-26 06:27:24 +00:00
filter_expression_save_dlg.h
filter_utils.c
filter_utils.h
find_dlg.c
find_dlg.h
firewall_dlg.c
firewall_dlg.h
flow_graph.c Have sequence analysis properly use filters from taps. 2017-09-23 03:42:14 +00:00
follow_stream.c Rename "ws_version_info.h", also .c 2017-09-26 17:32:08 +00:00
follow_stream.h
font_utils.c
font_utils.h
funnel_stat.c Remove superfluous null-checks before strdup/free 2017-10-15 12:38:51 +00:00
goto_dlg.c Move the declaration of packet_list_select_last_row() to ui/gtk/packet_list.h. 2016-12-12 21:12:58 +00:00
goto_dlg.h
graph_analysis.c Add Flow Graph functionality to TShark 2017-09-22 04:49:48 +00:00
graph_analysis.h Complete move of tap-sequence-analysis.c functionality to sequence_analysis.c 2017-09-21 22:16:09 +00:00
gsm_map_summary.c Allow bigger snapshot lengths for D-Bus captures. 2017-06-05 05:28:26 +00:00
gtk_iface_monitor.c
gtk_iface_monitor.h
gtkglobals.h
gui_stat_menu.h
gui_stat_util.c
gui_stat_util.h Remove some GtkCList comments and code. 2016-12-12 23:39:42 +00:00
gui_utils.c Rename ui_util.h -> ws_ui_util.h 2017-10-15 01:14:26 +00:00
gui_utils.h Rename ui_util.h -> ws_ui_util.h 2017-10-15 01:14:26 +00:00
help_dlg.c
help_dlg.h plugins: config.h must not be included by public headers 2017-09-06 08:10:56 +00:00
hostlist_table.c Qt: update endpoint statistics column labels to match GTK ones 2017-03-28 13:43:18 +00:00
hostlist_table.h
iax2_analysis.c Rename routines to clarify what they do. 2017-04-12 04:56:49 +00:00
io_stat.c Remove superfluous null-checks before strdup/free 2017-10-15 12:38:51 +00:00
keys.h
lbm_stream_dlg.c
lbm_stream_dlg.h
mac_lte_stat_dlg.c Remove superfluous null-checks before strdup/free 2017-10-15 12:38:51 +00:00
macros_dlg.c
macros_dlg.h
main.c Remove superfluous null-checks before strdup/free 2017-10-15 12:38:51 +00:00
main.gresources.xml
main.h
main_80211_toolbar.c Rename ui_util.h -> ws_ui_util.h 2017-10-15 01:14:26 +00:00
main_80211_toolbar.h
main_airpcap_toolbar.c Yell at the user less. 2017-02-20 16:53:17 +00:00
main_airpcap_toolbar.h
main_filter_toolbar.c
main_filter_toolbar.h
main_menubar.c GTK: Fix warning for missing action 2017-09-24 20:43:41 +00:00
main_menubar_private.h
main_statusbar.c Rename section comment get/set routines. 2017-07-17 03:38:45 +00:00
main_statusbar_private.h
main_titlebar.c Rename "ws_version_info.h", also .c 2017-09-26 17:32:08 +00:00
main_titlebar.h
main_toolbar.c Fix Access Violation in plugin_if_mainwindow_get_ws_info(...) 2017-01-18 15:07:01 +00:00
main_toolbar.h
main_toolbar_private.h
main_welcome.c Remove superfluous null-checks before strdup/free 2017-10-15 12:38:51 +00:00
main_welcome.h
main_welcome_private.h
manual_addr_resolv.c
manual_addr_resolv.h
mcast_stream_dlg.c
mcast_stream_dlg.h
memory_dlg.c
menus.h
mtp3_summary.c Allow bigger snapshot lengths for D-Bus captures. 2017-06-05 05:28:26 +00:00
old-gtk-compat.h
packet_history.c
packet_history.h
packet_list.c Rename cf_get_comment() to reflect what comment it gets. 2017-07-17 03:49:33 +00:00
packet_list.h Move the declaration of packet_list_select_last_row() to ui/gtk/packet_list.h. 2016-12-12 21:12:58 +00:00
packet_list_store.c Rename ui_util.h -> ws_ui_util.h 2017-10-15 01:14:26 +00:00
packet_list_store.h
packet_panes.c Rename ui_util.h -> ws_ui_util.h 2017-10-15 01:14:26 +00:00
packet_panes.h
packet_win.c Rename ui_util.h -> ws_ui_util.h 2017-10-15 01:14:26 +00:00
packet_win.h
pixbuf-csource.c
pixbuf-csource.h
pixmap_save.c
pixmap_save.h
plugins_dlg.c
plugins_dlg.h
prefs_capture.c Remove superfluous null-checks before strdup/free 2017-10-15 12:38:51 +00:00
prefs_capture.h
prefs_column.c
prefs_column.h
prefs_dlg.c Convert filter expressions preference data to a UAT. 2017-06-26 02:44:05 +00:00
prefs_dlg.h
prefs_filter_expressions.c prefs_filter_expressions (GTK): fix no newline at end of file [-Wnewline-eof] 2017-10-03 11:44:36 +00:00
prefs_filter_expressions.h Convert filter expressions preference data to a UAT. 2017-06-26 02:44:05 +00:00
prefs_font_color.c Sample deprecated filter -> Sample warning filter 2017-06-25 22:51:47 +00:00
prefs_font_color.h
prefs_gui.c A bunch of "{Mac} OS X" -> "macOS" changes. 2017-04-05 19:16:22 +00:00
prefs_gui.h
prefs_layout.c
prefs_layout.h
print_dlg.c
profile_dlg.c
profile_dlg.h
progress_dlg.c
proto_dlg.c Pull the code to save enabled/disabled lists into libwireshark. 2017-04-09 02:00:37 +00:00
proto_dlg.h
proto_hier_stats_dlg.c Yell at the user less. 2017-02-20 16:53:17 +00:00
proto_hier_stats_dlg.h
proto_hier_tree_model.c
proto_hier_tree_model.h
proto_tree_model.c
proto_tree_model.h
range_utils.c
range_utils.h
response_time_delay_table.c Switch rtd and srt tables to use wmem_tree_t instead of (sorted) GSList. 2017-02-08 14:24:42 +00:00
response_time_delay_table.h Switch rtd and srt tables to use wmem_tree_t instead of (sorted) GSList. 2017-02-08 14:24:42 +00:00
rlc_lte_graph.c GTK: fix compilation with GCC 7 2017-07-12 09:19:39 +00:00
rlc_lte_stat_dlg.c Remove superfluous null-checks before strdup/free 2017-10-15 12:38:51 +00:00
rpc_stat.c
rtp_analysis.c Rename routines to clarify what they do. 2017-04-12 04:56:49 +00:00
rtp_player.c Clean up handling of enabled/disabled protocols/heuristic dissectors. 2017-04-08 20:40:08 +00:00
rtp_player.h
rtp_stream_dlg.c
rtp_stream_dlg.h
sctp_assoc_analyse.c Rename routines to clarify what they do. 2017-04-12 04:56:49 +00:00
sctp_byte_graph_dlg.c
sctp_chunk_stat.c
sctp_chunk_stat_dlg.c
sctp_error_dlg.c
sctp_graph_dlg.c Fix segfault, when only one TSN is captured 2017-01-24 13:57:21 +00:00
sctp_stat_dlg.c
sctp_stat_gtk.h
service_response_time_table.c Switch rtd and srt tables to use wmem_tree_t instead of (sorted) GSList. 2017-02-08 14:24:42 +00:00
service_response_time_table.h service_response_time_table (GTK) fix parameter 'data' not found in the function declaration [-Wdocumentation] 2017-02-10 10:21:34 +00:00
simple_dialog.c Clean up handling of enabled/disabled protocols/heuristic dissectors. 2017-04-08 20:40:08 +00:00
simple_dialog.h
simple_stattable.c Switch stat tap to use wmem_tree_t instead of (sorted) GSList. 2017-02-08 14:25:07 +00:00
simple_stattable.h Switch stat tap to use wmem_tree_t instead of (sorted) GSList. 2017-02-08 14:25:07 +00:00
stats_tree_stat.c Clean up handling of enabled/disabled protocols/heuristic dissectors. 2017-04-08 20:40:08 +00:00
stock_icons.c
stock_icons.h
summary_dlg.c Rename "ws_version_info.h", also .c 2017-09-26 17:32:08 +00:00
summary_dlg.h
supported_protos_dlg.c
supported_protos_dlg.h
tap_param_dlg.c
tap_param_dlg.h
tcp_graph.c A bunch of "{Mac} OS X" -> "macOS" changes. 2017-04-05 19:16:22 +00:00
text_page_utils.c
text_page_utils.h
time_shift_dlg.c
time_shift_dlg.h
uat_gui.c Use UAT model for I/O graph 2017-08-07 17:25:02 +00:00
uat_gui.h
voip_calls_dlg.c
voip_calls_dlg.h
webbrowser.c Change some names to reflect Apple's new UNIX-for-Macs name. 2017-06-16 08:50:22 +00:00
webbrowser.h
wlan_stat_dlg.c format_text_wmem -> format_text 2017-01-31 17:08:47 +00:00