mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
bluez5: fix some coverity issues
Missing null pointer checks, wrong array indices, uninitialized/unused variables.
This commit is contained in:
parent
26b09b0ee3
commit
7f2bdab8ea
5 changed files with 7 additions and 9 deletions
|
|
@ -177,7 +177,6 @@ static gboolean chr_handle_acquire(Bluez5GattCharacteristic1 *object,
|
|||
int res;
|
||||
GUnixFDList *fd_list = NULL;
|
||||
GVariant *fd_handle = NULL;
|
||||
GError *err = NULL;
|
||||
|
||||
if ((write && (impl->cb->acquire_write == NULL)) ||
|
||||
(!write && (impl->cb->acquire_notify == NULL))) {
|
||||
|
|
@ -230,8 +229,6 @@ fail:
|
|||
if (fds[1] >= 0)
|
||||
close(fds[1]);
|
||||
|
||||
if (err)
|
||||
g_error_free(err);
|
||||
g_clear_pointer(&fd_handle, g_variant_unref);
|
||||
g_clear_object(&fd_list);
|
||||
g_dbus_method_invocation_return_dbus_error(invocation,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue