Fix memleak: FREE(assign->dest.output)

This commit is contained in:
Orestis Floros 2018-03-19 02:02:59 +02:00
parent e3e09119bf
commit 1fe4e635b5
2 changed files with 3 additions and 1 deletions

View File

@ -573,7 +573,7 @@ struct Assignment {
/** the criteria to check if a window matches */
Match match;
/** destination workspace/command, depending on the type */
/** destination workspace/command/output, depending on the type */
union {
char *command;
char *workspace;

View File

@ -103,6 +103,8 @@ void load_configuration(xcb_connection_t *conn, const char *override_configpath,
FREE(assign->dest.workspace);
else if (assign->type == A_COMMAND)
FREE(assign->dest.command);
else if (assign->type == A_TO_OUTPUT)
FREE(assign->dest.output);
match_free(&(assign->match));
TAILQ_REMOVE(&assignments, assign, assignments);
FREE(assign);