From 9124a094828cc5491e99cb36738185646128e622 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 5 May 2026 16:34:15 +0200 Subject: [PATCH] modules: handle allocation error of properties --- src/modules/module-echo-cancel.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/module-echo-cancel.c b/src/modules/module-echo-cancel.c index aa087e999..6effb1d1c 100644 --- a/src/modules/module-echo-cancel.c +++ b/src/modules/module-echo-cancel.c @@ -1544,7 +1544,8 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args) aec_props = pw_properties_new_string(str); else aec_props = pw_properties_new(NULL, NULL); - + if (aec_props == NULL) + goto error_errno; if (spa_interface_callback_check(&impl->aec->iface, struct spa_audio_aec_methods, init2, 3)) { impl->rec_info = impl->capture_info; @@ -1657,6 +1658,8 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args) return 0; +error_errno: + res = -errno; error: pw_properties_free(props); impl_destroy(impl);