Fix memleak: FREE(assign->dest.output)
This commit is contained in:
parent
e3e09119bf
commit
1fe4e635b5
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue