DBusMessageIter sub;
Seat *s = data;
const char *id, *path;
- char _cleanup_free_ *p = NULL;
+ _cleanup_free_ char *p = NULL;
assert(i);
assert(property);
return -ENOMEM;
LIST_FOREACH(sessions_by_seat, session, s->sessions) {
- char _cleanup_free_ *p = NULL;
+ _cleanup_free_ char *p = NULL;
if (!dbus_message_iter_open_container(&sub, DBUS_TYPE_STRUCT, NULL, &sub2))
return -ENOMEM;
}
static int get_seat_for_path(Manager *m, const char *path, Seat **_s) {
+ _cleanup_free_ char *id = NULL;
Seat *s;
- char *id;
assert(m);
assert(path);
return -ENOMEM;
s = hashmap_get(m->seats, id);
- free(id);
-
if (!s)
return -ENOENT;
};
char *seat_bus_path(Seat *s) {
- char _cleanup_free_ *t;
+ _cleanup_free_ char *t = NULL;
assert(s);