audioc: Fix memory leak in configfile_exists().
authorAndre Noll <maan@systemlinux.org>
Fri, 13 Jan 2012 22:54:08 +0000 (23:54 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 5 Feb 2012 19:16:18 +0000 (20:16 +0100)
In case the config file does not exist, the function returns NULL
without freeing the config_file buffer.

This patch also makes config_file non-static. As configfile_exists()
is called at most once, it is pointless to have a static variable
there. The condition "if (!config_file)" is always true, so we can
get rid of the conditional alltogether.


No differences found