Skip to content

Commit 386cf2a

Browse files
committed
tools: plugin: tplg: Free tplg_base
Free the memory allocated for tplg_base during topology free. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
1 parent 13ddd84 commit 386cf2a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/plugin/alsaplug/tplg.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,6 +1445,7 @@ int plug_free_pipelines(snd_sof_plug_t *plug, struct tplg_pipeline_list *pipelin
14451445

14461446
void plug_free_topology(snd_sof_plug_t *plug)
14471447
{
1448+
struct tplg_context *ctx = &plug->tplg;
14481449
struct list_item *item, *_item;
14491450

14501451
list_for_item_safe(item, _item, &plug->pcm_list) {
@@ -1483,5 +1484,6 @@ void plug_free_topology(snd_sof_plug_t *plug)
14831484
free(pipe_info);
14841485
}
14851486

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

0 commit comments

Comments
 (0)