summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXavier Chantry <shiningxc@gmail.com>2009-09-07 01:50:36 +0200
committerDan McGee <dan@archlinux.org>2009-09-07 02:15:12 +0200
commit2f190726324c44f314e8966f0068dea0b013d968 (patch)
treef1b232ad11eae9f97b8151a4ceca2179a3715956 /src
parent845f21207c53c36c02f14343dcf4dbbca5462ce0 (diff)
downloadpacman-2f190726324c44f314e8966f0068dea0b013d968.tar.gz
pacman-2f190726324c44f314e8966f0068dea0b013d968.tar.xz
fix small memleak in an error case
Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/pacman.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 37472083..efc24126 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -906,6 +906,7 @@ static int _parseconfig(const char *file, const char *givensection,
free(temp);
} else {
if(strstr(temp, "$arch")) {
+ free(temp);
pm_printf(PM_LOG_ERROR, _("The mirror '%s' contains the $arch"
" variable, but no Architecture is defined.\n"), ptr);
ret = 1;