pipewire: module-raop-sink: fix memory leak

As Coverity points out, previously, when the `else`
branch was taken, then `tokens` was not freed.
This commit is contained in:
Barnabás Pőcze 2022-06-16 18:51:19 +02:00
parent 84c01bb0bc
commit bc67745c07

View file

@ -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);