impl-core: fix memleak in error case

This commit is contained in:
Wim Taymans 2021-03-25 17:17:40 +01:00
parent 78da72ce30
commit 4ab4c57a55

View file

@ -464,6 +464,7 @@ struct pw_impl_core *pw_context_create_core(struct pw_context *context,
error_exit: error_exit:
if (properties) if (properties)
pw_properties_free(properties); pw_properties_free(properties);
free(this);
errno = -res; errno = -res;
return NULL; return NULL;
} }