[pulseaudio-discuss] [PATCH] match: don't double free in case of missing table file

Tanu Kaskinen tanu.kaskinen at digia.com
Wed Apr 20 04:49:18 PDT 2011


From: Marc-André Lureau <marcandre.lureau at gmail.com>

---
 src/modules/module-match.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/modules/module-match.c b/src/modules/module-match.c
index c8f2706..3eba149 100644
--- a/src/modules/module-match.c
+++ b/src/modules/module-match.c
@@ -95,7 +95,6 @@ static int load_rules(struct userdata *u, const char *filename) {
         f = pa_open_config_file(DEFAULT_MATCH_TABLE_FILE, DEFAULT_MATCH_TABLE_FILE_USER, NULL, &fn);
 
     if (!f) {
-        pa_xfree(fn);
         pa_log("Failed to open file config file: %s", pa_cstrerror(errno));
         goto finish;
     }
-- 
1.7.4.2




More information about the pulseaudio-discuss mailing list