summaryrefslogtreecommitdiff
path: root/tshark.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2009-03-15 18:08:46 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2009-03-15 18:08:46 +0000
commit0258be0b0544d4ccb08f2b01ef2b59f7c7afd6fd (patch)
tree44e6b5fab5e07e13c8e55052f5fa45e0c61c2e8c /tshark.c
parent0f9f5caf9deb0dda5ea5fe1642d2e9bc7e7fe43f (diff)
downloadwireshark-0258be0b0544d4ccb08f2b01ef2b59f7c7afd6fd.tar.gz
From Jakub Zawadzki:
More remove checking for NULL before g_free(). svn path=/trunk/; revision=27728
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tshark.c b/tshark.c
index 81aff7dd61..9ce3f57582 100644
--- a/tshark.c
+++ b/tshark.c
@@ -2313,8 +2313,7 @@ out:
wtap_close(cf->wth);
cf->wth = NULL;
- if (save_file_string != NULL)
- g_free(save_file_string);
+ g_free(save_file_string);
return err;
}