aboutsummaryrefslogtreecommitdiff
path: root/cmd-source-file.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2021-08-22 16:01:19 +0100
committerThomas Adam <thomas@xteddy.org>2021-08-22 16:01:19 +0100
commit03054598df77da74499babd4d4cd2f3575c81d22 (patch)
tree164807efa71b88c0dd85360503a763fa3cb50afa /cmd-source-file.c
parent324f87cf142fb1b7ed8cd738316bdb3f6fa7c1df (diff)
parent72d905f32c53ea1304b4b3206383502a23cfc0fd (diff)
downloadrtmux-03054598df77da74499babd4d4cd2f3575c81d22.tar.gz
rtmux-03054598df77da74499babd4d4cd2f3575c81d22.tar.bz2
rtmux-03054598df77da74499babd4d4cd2f3575c81d22.zip
Merge branch 'obsd-master' into master
Diffstat (limited to 'cmd-source-file.c')
-rw-r--r--cmd-source-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-source-file.c b/cmd-source-file.c
index 44a88fea..71f69d59 100644
--- a/cmd-source-file.c
+++ b/cmd-source-file.c
@@ -179,12 +179,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;