fix memory leak in case PKGBUILD can't be fully read
found by cppcheck