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

Commit 21291a42 authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "fix leak in audio policy effect config parser" into lmp-mr1-dev

parents 5b578bec 182c2f5e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -658,6 +658,10 @@ status_t AudioPolicyEffects::loadAudioEffectConfig(const char *path)
    loadInputEffectConfigurations(root, effects);
    loadStreamEffectConfigurations(root, effects);

    for (size_t i = 0; i < effects.size(); i++) {
        delete effects[i];
    }

    config_free(root);
    free(root);
    free(data);