Skip to content

crash on -l #175

@J-u-n-o

Description

@J-u-n-o

Segmentation fault
Due to free-ing memory twice,
and subsequent free-ing of null pointers

file: playerctl-player.c
function: playerctl_list_players
Original the system_players were free-ed:

  /* g_list_concat: Adds the second GList onto the end of the first GList. Note that the elements of the second GList are not copied. They are used directly.*/
  GList *players = g_list_concat(session_players, system_players);

system_players = NULL;

  return players;

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions