mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-04 16:45:07 -05: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:
parent
845f21207c
commit
2f19072632
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user