audiod: fix minor memory leak
authorAndre <maan@p133.(none)>
Sat, 6 May 2006 14:06:31 +0000 (16:06 +0200)
committerAndre <maan@p133.(none)>
Sat, 6 May 2006 14:06:31 +0000 (16:06 +0200)
The default filter setup code (which is only called at startup)
leaks four bytes.

audiod.c

index a78ccd6..bd87cf8 100644 (file)
--- 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]);