--- pkgconfig-0.17.1/pkg.c.old 2005-04-14 08:59:43.589865584 +0800 +++ pkgconfig-0.17.1/pkg.c 2005-04-14 08:57:58.226883192 +0800 @@ -1023,7 +1023,8 @@ packages_get_l_libs (GSList *pkgs, g tmp = pkgs; while (tmp != NULL) { - dups_list = g_slist_concat (dups_list, get_l_libs(tmp->data)); + dups_list = g_slist_concat (dups_list, + g_slist_copy (get_l_libs (tmp->data))); tmp = tmp->next; } @@ -1066,7 +1067,8 @@ packages_get_L_libs (GSList *pkgs, g tmp = pkgs; while (tmp != NULL) { - dups_list = g_slist_concat (dups_list, get_L_libs(tmp->data)); + dups_list = g_slist_concat (dups_list, + g_slist_copy (get_L_libs (tmp->data))); tmp = tmp->next; }