mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
module-jackdbus-detect: Avoid double-free of modargs
If module-jackdbus-detect failed in the later part of initialization, the ma variable was freed twice. BugLink: http://bugs.launchpad.net/bugs/867444 Signed-off-by: David Henningsson <david.henningsson@canonical.com>
This commit is contained in:
parent
42d056593d
commit
58585db808
1 changed files with 1 additions and 1 deletions
|
|
@ -231,7 +231,6 @@ int pa__init(pa_module *m) {
|
|||
pa_log("Failed to parse connect= argument.");
|
||||
goto fail;
|
||||
}
|
||||
pa_modargs_free(ma);
|
||||
|
||||
if (!(connection = pa_dbus_bus_get(m->core, DBUS_BUS_SESSION, &error)) || dbus_error_is_set(&error)) {
|
||||
|
||||
|
|
@ -259,6 +258,7 @@ int pa__init(pa_module *m) {
|
|||
|
||||
check_service_started(u);
|
||||
|
||||
pa_modargs_free(ma);
|
||||
return 0;
|
||||
|
||||
fail:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue