diff options
author | Rob Austein <sra@hactrn.net> | 2013-06-07 17:07:09 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2013-06-07 17:07:09 +0000 |
commit | 71c1ac13abd69245988a500b6ac82bd1e7a3c7c7 (patch) | |
tree | 2d16c43e30a524910957a5dce74ae0105a8f45c2 /rcynic | |
parent | 44275e7120e2e2fcb42cc54ae7c6928ccfa63535 (diff) |
Forgot a globfree().
svn path=/trunk/; revision=5378
Diffstat (limited to 'rcynic')
-rw-r--r-- | rcynic/rcynic.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rcynic/rcynic.c b/rcynic/rcynic.c index 83d41ef5..031dd002 100644 --- a/rcynic/rcynic.c +++ b/rcynic/rcynic.c @@ -1731,12 +1731,14 @@ static int finalize_directories(const rcynic_ctx_t *rc) memset(&g, 0, sizeof(g)); - if (real_new.s[0] && glob(path.s, 0, 0, &g) == 0) + if (real_new.s[0] && glob(path.s, 0, 0, &g) == 0) { for (i = 0; i < g.gl_pathc; i++) if (realpath(g.gl_pathv[i], path.s) && strcmp(path.s, real_old.s) && strcmp(path.s, real_new.s)) rm_rf(&path); + globfree(&g); + } return 1; } |