mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
modules: Fix resource leak in tunnel-sink-new
https://scan7.coverity.com:8443/reports.htm#v10205/p10016/fileInstanceId=8770&defectInstanceId=3733&mergedDefectId=591270 Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
parent
ff9e9e05df
commit
7978baaf81
1 changed files with 4 additions and 2 deletions
|
|
@ -287,10 +287,12 @@ static void context_state_cb(pa_context *c, void *userdata) {
|
|||
pa_proplist *proplist;
|
||||
pa_buffer_attr bufferattr;
|
||||
pa_usec_t requested_latency;
|
||||
const char *username = pa_get_user_name_malloc();
|
||||
const char *hostname = pa_get_host_name_malloc();
|
||||
char *username = pa_get_user_name_malloc();
|
||||
char *hostname = pa_get_host_name_malloc();
|
||||
/* TODO: old tunnel put here the remote sink_name into stream name e.g. 'Null Output for lynxis@lazus' */
|
||||
char *stream_name = pa_sprintf_malloc(_("Tunnel for %s@%s"), username, hostname);
|
||||
pa_xfree(hostname);
|
||||
pa_xfree(username);
|
||||
|
||||
pa_log_debug("Connection successful. Creating stream.");
|
||||
pa_assert(!u->stream);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue