summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2017-08-23 10:32:38 +0200
committerWim Taymans <wtaymans@redhat.com>2017-08-23 10:32:38 +0200
commit5cc4c5c37814bb877f8d315aa46c860d62dfb9ee (patch)
tree41a6df182729d9b6c64799d4d43188f02b39b1e1
parent61e721800614d8ca8e694cd53a05d48be06c3883 (diff)
core: fix leak
-rw-r--r--src/pipewire/core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pipewire/core.c b/src/pipewire/core.c
index cbd5cda0..7a7ac310 100644
--- a/src/pipewire/core.c
+++ b/src/pipewire/core.c
@@ -586,8 +586,10 @@ struct pw_port *pw_core_find_port(struct pw_core *core,
pout,
pin,
props,
- n_format_filters, format_filters, error) == NULL)
+ n_format_filters, format_filters, error) == NULL) {
+ free(*error);
continue;
+ }
best = p;
}