From 2d5e0ef47ba51a15aef062afb3a2333f8ba90c3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Date: Sun, 19 Feb 2023 17:08:57 +0000 Subject: [PATCH] context: free properties on allocation failure --- src/pipewire/context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pipewire/context.c b/src/pipewire/context.c index 197b00041..ba6af955a 100644 --- a/src/pipewire/context.c +++ b/src/pipewire/context.c @@ -180,6 +180,7 @@ struct pw_context *pw_context_new(struct pw_loop *main_loop, impl = calloc(1, sizeof(struct impl) + user_data_size); if (impl == NULL) { + pw_properties_free(properties); res = -errno; goto error_cleanup; }