mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
pactl: return in case of error reading file (avoid using freed d)
This commit is contained in:
parent
25bbea6749
commit
c3eb9086b8
1 changed files with 1 additions and 0 deletions
|
|
@ -649,6 +649,7 @@ static void stream_write_callback(pa_stream *s, size_t length, void *userdata) {
|
|||
pa_xfree(d);
|
||||
fprintf(stderr, _("Premature end of file\n"));
|
||||
quit(1);
|
||||
return;
|
||||
}
|
||||
|
||||
pa_stream_write(s, d, length, pa_xfree, 0, PA_SEEK_RELATIVE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue