mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
Fix some possible leaks.
This commit is contained in:
parent
fa5b04f3e5
commit
6224068586
3 changed files with 11 additions and 1 deletions
|
|
@ -102,12 +102,18 @@ static GstPipeWireCore *make_core (int fd)
|
|||
mainloop_failed:
|
||||
{
|
||||
GST_ERROR ("error starting mainloop");
|
||||
pw_context_destroy (core->context);
|
||||
pw_thread_loop_destroy (core->loop);
|
||||
g_free (core);
|
||||
return NULL;
|
||||
}
|
||||
connection_failed:
|
||||
{
|
||||
GST_ERROR ("error connect: %m");
|
||||
pw_thread_loop_unlock (core->loop);
|
||||
pw_context_destroy (core->context);
|
||||
pw_thread_loop_destroy (core->loop);
|
||||
g_free (core);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2256,6 +2256,9 @@ static int do_finish_upload_stream(struct client *client, uint32_t command, uint
|
|||
|
||||
error_errno:
|
||||
res = -errno;
|
||||
if (sample != NULL) {
|
||||
free(sample);
|
||||
}
|
||||
goto error;
|
||||
error_invalid:
|
||||
res = -EINVAL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue