From 85b7ea101a39bdf812a1c8ddd5793af4975200c2 Mon Sep 17 00:00:00 2001 From: Mark Calderbank Date: Mon, 26 Mar 2007 18:09:02 +0000 Subject: [PATCH] Memory leak --- playerradio.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playerradio.cc b/playerradio.cc index 4cb3665..16c74c0 100644 --- a/playerradio.cc +++ b/playerradio.cc @@ -134,10 +134,10 @@ bool PlayerRadio::setLengthSeconds() } success = demuxer->findPTS(buffer, thisRead, &endPTS); + free(buffer); if (!success) { logger->log("PlayerRadio", Log::ERR, "Failed to get end PTS"); - free(buffer); return false; } -- 2.39.5