From fef9b4625ef6d0b125cba092071e3e7a3ec329bf Mon Sep 17 00:00:00 2001 From: Moritz Grimm Date: Fri, 15 Sep 2017 20:21:45 +0200 Subject: [PATCH] Fix memory leak (CID 171996) --- src/ezstream.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ezstream.c b/src/ezstream.c index c820454..83d2782 100644 --- a/src/ezstream.c +++ b/src/ezstream.c @@ -613,9 +613,10 @@ streamFile(stream_t stream, const char *fileName) ret = STREAM_DONE; continue; } - if (0> stream_set_metadata(stream, prog_mdata, &mdataStr)) { + if (0 > stream_set_metadata(stream, prog_mdata, &mdataStr)) { retval = 0; ret = STREAM_DONE; + metadata_free(&prog_mdata); continue; } metadata_free(&prog_mdata);