binMean1D(): fix memory probem