mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-13 13:30:05 -05:00
impl-module: don't leak filename
When dlopen fails, don't leak the filename. Fix indentation.
This commit is contained in:
parent
947ee152d3
commit
6d492db948
1 changed files with 9 additions and 6 deletions
|
|
@ -190,6 +190,9 @@ pw_context_load_module(struct pw_context *context,
|
|||
hnd = dlopen(filename, RTLD_NOW | RTLD_LOCAL);
|
||||
if (hnd != NULL)
|
||||
break;
|
||||
|
||||
free(filename);
|
||||
filename = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue