Fixed a memory allocation error in histogram for t2, same as the one for t3 a frew commits back.
Fixed a memory allocation error in histogram for t2, same as the one for t3 a frew commits back.

tsbischof/photon_correlation,tsbischof/photon_correlation,tsbischof/photon_correlation