We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fba5eb4 commit aa06803Copy full SHA for aa06803
src/ctl/sinkctl.c
@@ -538,14 +538,15 @@ void launch_player(struct ctl_sink *s) {
538
size += strlen(argv[i++]) + 1;
539
}
540
541
- char* player_command = malloc(size);
+ gchar* player_command = malloc(size);
542
i = 0;
543
strcpy(player_command, argv[i++]);
544
while (argv[i]) {
545
strcat(player_command, " ");
546
strcat(player_command, argv[i++]);
547
548
log_debug("player command: %s", player_command);
549
+ g_free(player_command);
550
if (execvpe(argv[0], argv, environ) < 0) {
551
cli_debug("stream player failed (%d): %m", errno);
552
int i = 0;
0 commit comments