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