Fixed a bug where pointers were never normalized, leading to a segfault upon freeing.
Fixed a bug where pointers were never normalized, leading to a segfault upon freeing.

tsbischof/photon_correlation,tsbischof/photon_correlation,tsbischof/photon_correlation