]> git.tuebingen.mpg.de Git - paraslash.git/commit
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)
commitd4b040af5e31260dbf71f4547484179f32be4746
tree4d63ea1283b255bf02d8776ea337817e74ae500f
parentd73a140ae7f77a18f858a66d1a354d106088c6ca
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.
audioc.c