base: don't leak input buffer if we have a non-OK flow return
base: don't leak input buffer if we have a non-OK flow return

Don't leak the input buffer of the chain function in case of
errors or non-OK flow returns. Fixes memory leaks when seeking
or when the pipeline is shut down.

Signed-off-by: Tim-Philipp Müller <6a54da6e57f237a6c3534d580268fa8f888e9821@collabora.co.uk>
Signed-off-by: Felipe Contreras <de77a8b9cd239b204c19c52ed62e48ab47243362@nokia.com>

community-ssu/gst-dsp,felipec/gst-dsp,felipec/gst-dsp,community-ssu/gst-dsp,community-ssu/gst-dsp