aboutsummaryrefslogtreecommitdiffstats
path: root/tap-protocolinfo.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 /tap-protocolinfo.c
parent0f9f5caf9deb0dda5ea5fe1642d2e9bc7e7fe43f (diff)
From Jakub Zawadzki:
More remove checking for NULL before g_free(). svn path=/trunk/; revision=27728
Diffstat (limited to 'tap-protocolinfo.c')
-rw-r--r--tap-protocolinfo.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tap-protocolinfo.c b/tap-protocolinfo.c
index 45ec4dcf7a..632949692e 100644
--- a/tap-protocolinfo.c
+++ b/tap-protocolinfo.c
@@ -129,9 +129,7 @@ protocolinfo_init(const char *optarg, void* userdata _U_)
fprintf(stderr, "tshark: Couldn't register proto,colinfo tap: %s\n",
error_string->str);
g_string_free(error_string, TRUE);
- if(rs->filter){
- g_free(rs->filter);
- }
+ g_free(rs->filter);
g_free(rs);
exit(1);