modules: fix some small memory leaks

This commit is contained in:
Wim Taymans 2020-06-16 12:40:39 +02:00
parent 1778f76c78
commit 9315bbdfe5
2 changed files with 4 additions and 1 deletions

View file

@ -343,8 +343,10 @@ int pa__init(pa_module*m) {
if (!format) {
pa_log(_("Failed to set format: invalid format string %s"), f);
pa_xfree(f);
goto fail;
}
pa_xfree(f);
pa_idxset_put(u->formats, format, NULL);
}