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

@ -562,7 +562,7 @@ static pa_hook_result_t card_choose_initial_profile_callback(pa_core *core, pa_c
if (!u->restore_bluetooth_profile) {
const char *s = pa_proplist_gets(card->proplist, PA_PROP_DEVICE_BUS);
if (pa_safe_streq(s, "bluetooth"))
return PA_HOOK_OK;
goto finish;
}
if (e->profile[0]) {
@ -582,6 +582,7 @@ static pa_hook_result_t card_choose_initial_profile_callback(pa_core *core, pa_c
}
}
finish:
entry_free(e);
return PA_HOOK_OK;