Skip to content

Commit e3d3605

Browse files
mattmundellgreenbonebot
authored andcommitted
Fix: remove NULL check before free_routes g_free
This one may look scary but it's the same as the others. The if condition is being passed the exact same value that is being passed to the g_free.
1 parent 574b0c0 commit e3d3605

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

base/networking.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -992,8 +992,7 @@ free_routes (GSList *routes)
992992

993993
for (routes_p = routes; routes_p; routes_p = routes_p->next)
994994
{
995-
if (((route_entry_t *) (routes_p->data))->interface)
996-
g_free (((route_entry_t *) (routes_p->data))->interface);
995+
g_free (((route_entry_t *) (routes_p->data))->interface);
997996
g_free (routes_p->data);
998997
}
999998
g_slist_free (routes);

0 commit comments

Comments
 (0)