mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse-server: remove unnecessary NULL checks
`free()` and `pw_properties_free()` already include a NULL check before proceeding.
This commit is contained in:
parent
089d7726dc
commit
9c218b2d08
2 changed files with 3 additions and 8 deletions
|
|
@ -2216,9 +2216,7 @@ static int do_finish_upload_stream(struct client *client, uint32_t command, uint
|
|||
|
||||
error_errno:
|
||||
res = -errno;
|
||||
if (sample != NULL) {
|
||||
free(sample);
|
||||
}
|
||||
free(sample);
|
||||
goto error;
|
||||
error_invalid:
|
||||
res = -EINVAL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue