Skip to content

Commit

Permalink
extcap: fix memory leak
Browse files Browse the repository at this point in the history
found by valgrind

Change-Id: I8c5226a08be797ce72ec937138a6681d946fb13c
Reviewed-on: https://code.wireshark.org/review/20720
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Roland Knall <rknall@gmail.com>
  • Loading branch information
dmitrmax authored and rknall committed Apr 19, 2017
1 parent a426cf7 commit 9e8bc9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1388,7 +1388,7 @@ static void remove_extcap_entry(gpointer entry, gpointer data _U_)
extcap_interface *int_iter = (extcap_interface*)entry;

if (int_iter->if_type == EXTCAP_SENTENCE_EXTCAP)
g_free(int_iter);
extcap_free_interface(entry);
}

static gboolean cb_load_interfaces(extcap_callback_info_t cb_info)
Expand Down

0 comments on commit 9e8bc9f

Please sign in to comment.