Skip to content

Commit

Permalink
Fix list free
Browse files Browse the repository at this point in the history
  • Loading branch information
lwindolf committed Apr 9, 2023
1 parent 0801090 commit cfd74bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tests/parse_html.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ static void
tc_auto_discover_link (gconstpointer user_data)
{
gchar **tc = (gchar **)user_data;
GSList *result;
GSList *list, *result;
guint i = 2;

result = html_auto_discover_feed (g_strdup (tc[0]), tc[1]);
list = result = html_auto_discover_feed (g_strdup (tc[0]), tc[1]);
do {
if (!tc[i]) {
g_assert_null (result);
Expand All @@ -202,6 +202,8 @@ tc_auto_discover_link (gconstpointer user_data)
result = g_slist_next (result);
}
} while(tc[i++]);

g_slist_free_full (list, g_free);
}

static void
Expand Down

0 comments on commit cfd74bb

Please sign in to comment.