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:
David Henningsson 2011-10-05 10:28:50 +02:00 committed by Arun Raghavan
parent 42d056593d
commit 58585db808

View file

@ -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: