awesome: fix memory leak with confpath
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
97d82d8517
commit
67b66a8d62
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue