From: Andre Noll Date: Fri, 13 Jan 2012 22:54:08 +0000 (+0100) Subject: audioc: Fix memory leak in configfile_exists(). X-Git-Tag: v0.4.10~8^2~1 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=d4b040af5e31260dbf71f4547484179f32be4746;hp=d4b040af5e31260dbf71f4547484179f32be4746 audioc: Fix memory leak in configfile_exists(). 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. ---