From 308e0ef39155bd208d8920807d4aa16878ed3d3d Mon Sep 17 00:00:00 2001 From: Andre Date: Sat, 6 May 2006 16:06:31 +0200 Subject: [PATCH] audiod: fix minor memory leak The default filter setup code (which is only called at startup) leaks four bytes. --- audiod.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/audiod.c b/audiod.c index a78ccd68..bd87cf87 100644 --- a/audiod.c +++ b/audiod.c @@ -1096,8 +1096,9 @@ static int setup_default_filters(void) free(tmp); if (ret < 0) goto out; - PARA_INFO_LOG("%s -> default filter: %s\n", audio_formats[i], filters[j].name); - ret = add_filter(i, para_strdup("wav")); + PARA_INFO_LOG("%s -> default filter: %s\n", audio_formats[i], + filters[j].name); + ret = add_filter(i, "wav"); if (ret < 0) goto out; PARA_INFO_LOG("%s -> default filter: wav\n", audio_formats[i]); -- 2.39.5