mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Do not double free expanded path in source-file, also remove some
unnecessary assignments.
This commit is contained in:
@ -180,12 +180,12 @@ cmd_source_file_exec(struct cmd *self, struct cmdq_item *item)
|
||||
free(pattern);
|
||||
continue;
|
||||
}
|
||||
free(expanded);
|
||||
free(pattern);
|
||||
|
||||
for (j = 0; j < g.gl_pathc; j++)
|
||||
cmd_source_file_add(cdata, g.gl_pathv[j]);
|
||||
}
|
||||
free(expanded);
|
||||
|
||||
cdata->after = item;
|
||||
cdata->retval = retval;
|
||||
|
Reference in New Issue
Block a user