rsfastcentrality2: memory allocation bugfix