From bc67745c07c5b8470db03cc51e606d748598fd2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Thu, 16 Jun 2022 18:51:19 +0200 Subject: [PATCH] pipewire: module-raop-sink: fix memory leak As Coverity points out, previously, when the `else` branch was taken, then `tokens` was not freed. --- src/modules/module-raop-sink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-raop-sink.c b/src/modules/module-raop-sink.c index e3bbce512..1914f72ac 100644 --- a/src/modules/module-raop-sink.c +++ b/src/modules/module-raop-sink.c @@ -1143,7 +1143,7 @@ static int rtsp_do_auth(struct impl *impl, const struct spa_dict *headers) DEFAULT_USER_NAME, realm, nonce, resp); } else - return -EINVAL; + goto error; pw_properties_setf(impl->headers, "Authorization", "%s %s", tokens[0], auth);