mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
tools: fix some missing free/close
This commit is contained in:
parent
3539374ba7
commit
baadda3b67
2 changed files with 2 additions and 2 deletions
|
|
@ -1559,7 +1559,7 @@ static struct global *
|
|||
obj_global_port(struct remote_data *rd, struct global *global, const char *port_direction, const char *port_id)
|
||||
{
|
||||
struct global *global_port_found = NULL;
|
||||
uint32_t *ports = NULL;
|
||||
spa_autofree uint32_t *ports = NULL;
|
||||
int port_count;
|
||||
|
||||
port_count = children_of(rd, global->id, PW_TYPE_INTERFACE_Port, &ports);
|
||||
|
|
@ -1582,7 +1582,6 @@ obj_global_port(struct remote_data *rd, struct global *global, const char *port_
|
|||
}
|
||||
}
|
||||
|
||||
free(ports);
|
||||
return global_port_found;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -395,6 +395,7 @@ rd_device_new(DBusConnection *connection, const char *device_name, const char *a
|
|||
error_free:
|
||||
free(d->service_name);
|
||||
free(d->object_path);
|
||||
free(d->application_name);
|
||||
free(d);
|
||||
errno = -res;
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue