mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -04:00
xen: Fixed possible memory leak.
module-xenpv-sink.c - In pa__init(...), memory for pa_modargs *ma is not released before returning from function. Signed-off-by: Deepak Srivastava <srivastava.d@samsung.com>
This commit is contained in:
parent
2abcbd2041
commit
feecced5cd
1 changed files with 2 additions and 2 deletions
|
|
@ -398,7 +398,7 @@ int pa__init(pa_module*m) {
|
|||
/* user arguments override these */
|
||||
if (pa_modargs_get_sample_spec_and_channel_map(ma, &ss, &map, PA_CHANNEL_MAP_DEFAULT) < 0) {
|
||||
pa_log("Invalid sample format specification or channel map");
|
||||
return 1;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
/* Xen Basic init */
|
||||
|
|
@ -460,7 +460,7 @@ int pa__init(pa_module*m) {
|
|||
}
|
||||
if (ret!=NEGOTIATION_OK) {
|
||||
pa_log("Negotiation with Xen backend failed!");
|
||||
return 1;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
pa_sample_spec_snprint(strbuf, 100, &ss);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue