[pacman-dev] [PATCH] Fix memleaks in front-end caused by dynamic memory allocation