awesome: fix memory leak with confpath

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-09-08 12:01:07 +02:00
parent 97d82d8517
commit 67b66a8d62
1 changed files with 3 additions and 1 deletions

View File

@ -342,7 +342,7 @@ exit_help(int exit_code)
int
main(int argc, char **argv)
{
const char *confpath = NULL;
char *confpath = NULL;
int xfd, i, screen_nbr, opt, colors_nbr;
xcolor_init_request_t colors_reqs[2];
ssize_t cmdlen = 1;
@ -552,6 +552,8 @@ main(int argc, char **argv)
if (!luaA_parserc(&xdg, confpath, true))
fatal("couldn't find any rc file");
p_delete(&confpath);
xdgWipeHandle(&xdg);
/* scan existing windows */