1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00

fix small memleak in an error case

Signed-off-by: Xavier Chantry <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Xavier Chantry 2009-09-07 01:50:36 +02:00 committed by Dan McGee
parent 845f21207c
commit 2f19072632

View File

@ -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;