EcaIndices: replace malloc by std::vector.

4 jobs for develop in 16 minutes and 29 seconds (queued for 1 second)