Diff between 0315434a0e721e16d7c3911fca46dec0ab6958fd and 6bf1fe65132c478eb8fd2c30d3a2c3935b4c0cf5
Changed Files
| File | Additions | Deletions | Status |
| obexd/src/manager.c | +2 | -2 | modified |
Full Patch
diff --git a/obexd/src/manager.c b/obexd/src/manager.c
index 87010c4..b9786ad 100644
--- a/obexd/src/manager.c
+++ b/obexd/src/manager.c
@@ -607,8 +607,7 @@ void manager_register_session(struct obex_session *os)
session_methods, NULL,
NULL, os, NULL)) {
error("Cannot register Session interface.");
- g_free(path);
- return;
+ goto done;
}
g_dbus_emit_signal(connection, OPENOBEX_MANAGER_PATH,
@@ -616,6 +615,7 @@ void manager_register_session(struct obex_session *os)
DBUS_TYPE_OBJECT_PATH, &path,
DBUS_TYPE_INVALID);
+done:
g_free(path);
}