]> code.delx.au - pulseaudio/commitdiff
match: Don't double free in case of missing table file
authorMarc-André Lureau <marcandre.lureau@gmail.com>
Wed, 20 Apr 2011 11:49:18 +0000 (14:49 +0300)
committerColin Guthrie <colin@mageia.org>
Sat, 23 Apr 2011 17:23:37 +0000 (18:23 +0100)
src/modules/module-match.c

index c8f27062eeb193f8da629a29c275a6ba3190ba6f..3eba149385c979ba5b683ed40c332e16820ba76c 100644 (file)
@@ -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;
     }