match: Don't double free in case of missing table file

This commit is contained in:
Marc-André Lureau 2011-04-20 14:49:18 +03:00 committed by Colin Guthrie
parent ff273b49d7
commit 9b58b7d6c2

View 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;
}