summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'command.c')
-rw-r--r--command.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/command.c b/command.c
index bf3acba5c6..6ec37d4f26 100644
--- a/command.c
+++ b/command.c
@@ -2686,6 +2686,7 @@ static void show_tracks_on_osd(MPContext *mpctx)
char *lang = demuxer_stream_lang(mpctx->demuxer, sh);
if (lang)
res = talloc_asprintf_append(res, "(%s) ", lang);
+ talloc_free(lang);
if (selected)
res = talloc_asprintf_append(res, "<");
res = talloc_asprintf_append(res, "\n");