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
|
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 */
|
||||||
|
|
Loading…
Reference in New Issue