Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0ea663e6 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal: Fix memory leak in listen module"

parents 52ccaf97 fe916e17
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -119,10 +119,13 @@ void audio_extn_listen_update_status(snd_device_t snd_device,
void audio_extn_listen_set_parameters(struct audio_device *adev,
                               struct str_parms *parms)
{
    ALOGV("%s: enter: %s", __func__, str_parms_to_str(parms));

    ALOGV("%s: enter", __func__);
    if (listen_dev) {
        listen_dev->listen_set_parameters(&adev->device, str_parms_to_str(parms));
         char *kv_pairs = str_parms_to_str(parms);
         ALOGV_IF(kv_pairs != NULL, "%s: %s", __func__, kv_pairs);
         listen_dev->listen_set_parameters(&adev->device, kv_pairs);
         free(kv_pairs);
    }

    return;