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 */
|
/** the criteria to check if a window matches */
|
||||||
Match match;
|
Match match;
|
||||||
|
|
||||||
/** destination workspace/command, depending on the type */
|
/** destination workspace/command/output, depending on the type */
|
||||||
union {
|
union {
|
||||||
char *command;
|
char *command;
|
||||||
char *workspace;
|
char *workspace;
|
||||||
|
|
|
@ -103,6 +103,8 @@ void load_configuration(xcb_connection_t *conn, const char *override_configpath,
|
||||||
FREE(assign->dest.workspace);
|
FREE(assign->dest.workspace);
|
||||||
else if (assign->type == A_COMMAND)
|
else if (assign->type == A_COMMAND)
|
||||||
FREE(assign->dest.command);
|
FREE(assign->dest.command);
|
||||||
|
else if (assign->type == A_TO_OUTPUT)
|
||||||
|
FREE(assign->dest.output);
|
||||||
match_free(&(assign->match));
|
match_free(&(assign->match));
|
||||||
TAILQ_REMOVE(&assignments, assign, assignments);
|
TAILQ_REMOVE(&assignments, assign, assignments);
|
||||||
FREE(assign);
|
FREE(assign);
|
||||||
|
|
Loading…
Reference in New Issue