Skip to content

Commit

Permalink
tools: plugin: tplg: Free tplg_base
Browse files Browse the repository at this point in the history
Free the memory allocated for tplg_base during topology free.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
  • Loading branch information
ranj063 committed Apr 16, 2024
1 parent 13ddd84 commit 386cf2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/plugin/alsaplug/tplg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1445,6 +1445,7 @@ int plug_free_pipelines(snd_sof_plug_t *plug, struct tplg_pipeline_list *pipelin

void plug_free_topology(snd_sof_plug_t *plug)
{
struct tplg_context *ctx = &plug->tplg;
struct list_item *item, *_item;

list_for_item_safe(item, _item, &plug->pcm_list) {
Expand Down Expand Up @@ -1483,5 +1484,6 @@ void plug_free_topology(snd_sof_plug_t *plug)
free(pipe_info);
}

free(ctx->tplg_base);
tplg_debug("freed all pipelines, widgets, routes and pcms\n");
}

0 comments on commit 386cf2a

Please sign in to comment.