diff options
author | Wim Taymans <wtaymans@redhat.com> | 2017-08-23 10:32:38 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2017-08-23 10:32:38 +0200 |
commit | 5cc4c5c37814bb877f8d315aa46c860d62dfb9ee (patch) | |
tree | 41a6df182729d9b6c64799d4d43188f02b39b1e1 | |
parent | 61e721800614d8ca8e694cd53a05d48be06c3883 (diff) |
core: fix leak
-rw-r--r-- | src/pipewire/core.c | 4 |
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; } |