From 3bcbbeb2728a1362e27d80e059830e4aeb8007cb Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 12 Feb 2007 00:03:25 +0100 Subject: [PATCH] audiod.c: fix memory leak in audiod_status_dump() missing free() for decoder flags. Quite serious: We leaked some bytes on each status change. --- audiod_command.c | 1 + 1 file changed, 1 insertion(+) diff --git a/audiod_command.c b/audiod_command.c index 524fb57d..77a0a1ee 100644 --- a/audiod_command.c +++ b/audiod_command.c @@ -520,6 +520,7 @@ void audiod_status_dump(void) old = stat_task->stat_item_values[SI_DECODER_FLAGS]; new = decoder_flags(); if (!old || strcmp(old, new)) { + free(old); stat_client_write(new, SI_DECODER_FLAGS); stat_task->stat_item_values[SI_DECODER_FLAGS] = new; } else -- 2.39.5