diff --git a/tools/plugin/alsaplug/tplg.c b/tools/plugin/alsaplug/tplg.c index ac56efa854b3..8e478fa34729 100644 --- a/tools/plugin/alsaplug/tplg.c +++ b/tools/plugin/alsaplug/tplg.c @@ -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) { @@ -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"); }