summaryrefslogtreecommitdiff
path: root/src/pacman
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman')
-rw-r--r--src/pacman/ini.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pacman/ini.c b/src/pacman/ini.c
index 2c73d936..2e677e00 100644
--- a/src/pacman/ini.c
+++ b/src/pacman/ini.c
@@ -153,8 +153,12 @@ static int _parse_ini(const char *file, ini_parser_fn cb, void *data,
for(gindex = 0; gindex < globbuf.gl_pathc; gindex++) {
pm_printf(ALPM_LOG_DEBUG, "config file %s, line %d: including %s\n",
file, linenum, globbuf.gl_pathv[gindex]);
- _parse_ini(globbuf.gl_pathv[gindex], cb, data,
+ ret =_parse_ini(globbuf.gl_pathv[gindex], cb, data,
section_name, line, depth + 1);
+ if(ret) {
+ globfree(&globbuf);
+ goto cleanup;
+ }
}
break;
}