[pacman-dev] [PATCH v3 3/4] pacman/upgrade: Fix memory leaks