mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
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:
parent
84c01bb0bc
commit
bc67745c07
1 changed files with 1 additions and 1 deletions
|
|
@ -1143,7 +1143,7 @@ static int rtsp_do_auth(struct impl *impl, const struct spa_dict *headers)
|
||||||
DEFAULT_USER_NAME, realm, nonce, resp);
|
DEFAULT_USER_NAME, realm, nonce, resp);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return -EINVAL;
|
goto error;
|
||||||
|
|
||||||
pw_properties_setf(impl->headers, "Authorization", "%s %s",
|
pw_properties_setf(impl->headers, "Authorization", "%s %s",
|
||||||
tokens[0], auth);
|
tokens[0], auth);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue