]> git.tuebingen.mpg.de Git - paraslash.git/commit
audiod: Fix a memory leak.
authorAndre Noll <maan@systemlinux.org>
Tue, 4 Sep 2007 20:16:06 +0000 (22:16 +0200)
committerAndre Noll <maan@systemlinux.org>
Tue, 4 Sep 2007 20:16:06 +0000 (22:16 +0200)
commit64e19e1bdabc9bb04941f285fb828a8317359816
tree48f36aae91a063ba29055a9e5d0bb89f86659a7c
parent61b0a431ca3c5dabfa5445355664f00e312c5299
audiod: Fix a memory leak.

If the config file doesn't exist, configfile_exists() returnes NULL.
The old code leaked a pointer to the config file in this case.

This function is only called once at startup, so the leak is benign.
Morover, kill the static variable and the check if (!config_file) which
is always true.
audiod.c