aboutsummaryrefslogtreecommitdiffstats
path: root/extcap_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'extcap_parser.c')
-rw-r--r--extcap_parser.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/extcap_parser.c b/extcap_parser.c
index 652d7dde14..5a02df08ff 100644
--- a/extcap_parser.c
+++ b/extcap_parser.c
@@ -310,12 +310,9 @@ void extcap_free_interface(extcap_interface *i) {
while (i) {
next_i = i->next_interface;
- if (i->call != NULL)
- g_free(i->call);
-
- if (i->display != NULL)
- g_free(i->display);
-
+ g_free(i->call);
+ g_free(i->display);
+ g_free(i->version);
g_free(i);
i = next_i;
}