]> git.tue.mpg.de Git - paraslash.git/commitdiff
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 a78ccd68a8e4dddd912f7f6ee6933ad092e29ea1..bd87cf870203613648aec2261d501835062b4ade 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]);