From ca55a3292214c8bb2bc2340a159524474f472cec Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 8 Sep 2016 20:59:24 +0200 Subject: stream_bluray: fix a minor memory leak --- stream/stream_bluray.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'stream/stream_bluray.c') diff --git a/stream/stream_bluray.c b/stream/stream_bluray.c index 9ad56e5de0..81e4c00ba9 100644 --- a/stream/stream_bluray.c +++ b/stream/stream_bluray.c @@ -410,9 +410,10 @@ static int bluray_stream_open_internal(stream_t *s) if (!ti) continue; + char *time = mp_format_time(ti->duration / 90000, false); MP_VERBOSE(s, "idx: %3d duration: %s (playlist: %05d.mpls)\n", - i + 1, mp_format_time(ti->duration / 90000, false), - ti->playlist); + i + 1, time, ti->playlist); + talloc_free(time); /* try to guess which title may contain the main movie */ if (ti->duration > max_duration) { -- cgit v1.2.3