mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
context: free properties on allocation failure
This commit is contained in:
parent
b9d7ecb5b2
commit
2d5e0ef47b
1 changed files with 1 additions and 0 deletions
|
|
@ -180,6 +180,7 @@ struct pw_context *pw_context_new(struct pw_loop *main_loop,
|
||||||
|
|
||||||
impl = calloc(1, sizeof(struct impl) + user_data_size);
|
impl = calloc(1, sizeof(struct impl) + user_data_size);
|
||||||
if (impl == NULL) {
|
if (impl == NULL) {
|
||||||
|
pw_properties_free(properties);
|
||||||
res = -errno;
|
res = -errno;
|
||||||
goto error_cleanup;
|
goto error_cleanup;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue