summaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorMarc-André Lureau <marc-andre.lureau@nokia.com>2009-02-17 20:52:11 +0200
committerLennart Poettering <lennart@poettering.net>2009-02-19 04:54:18 +0100
commitc3eb9086b819eb7abb0248e0a253c21e5853fe99 (patch)
tree2bf2b73909d9aa3c07abab1bb29f93dbb30bcf1c /src/utils
parent25bbea67492cb7c6e9b8e78beb6553864c290a1a (diff)
pactl: return in case of error reading file (avoid using freed d)
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/pactl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils/pactl.c b/src/utils/pactl.c
index e020f372..d3da90e6 100644
--- a/src/utils/pactl.c
+++ b/src/utils/pactl.c
@@ -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);