mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
raop: Fix potential memory leak
Coverity ID: #1410204 Signed-off-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
This commit is contained in:
parent
4d7922d091
commit
94fc8c9ee2
1 changed files with 7 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ static void resolver_cb(
|
|||
|
||||
if (event != AVAHI_RESOLVER_FOUND) {
|
||||
pa_log("Resolving of '%s' failed: %s", name, avahi_strerror(avahi_client_errno(u->client)));
|
||||
goto finish;
|
||||
goto finish;
|
||||
}
|
||||
|
||||
if ((nicename = strstr(name, "@"))) {
|
||||
|
|
@ -235,6 +235,12 @@ static void resolver_cb(
|
|||
pa_log("Cannot construct valid device name from '%s'.", dname);
|
||||
avahi_free(device);
|
||||
pa_xfree(dname);
|
||||
pa_xfree(tp);
|
||||
pa_xfree(et);
|
||||
pa_xfree(cn);
|
||||
pa_xfree(ch);
|
||||
pa_xfree(ss);
|
||||
pa_xfree(sr);
|
||||
goto finish;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue