Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pacman/pacman-conf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pacman/pacman-conf.c b/src/pacman/pacman-conf.c
index 463badf1..05492ed9 100644
--- a/src/pacman/pacman-conf.c
+++ b/src/pacman/pacman-conf.c
@@ -76,6 +76,7 @@ static void parse_opts(int argc, char **argv)
config_file = optarg;
break;
case 'R':
+ free(config->rootdir);
if ((config->rootdir = strdup(optarg)) == NULL) {
fprintf(stderr, _("error setting rootdir '%s': out of memory\n"), optarg);
cleanup();