[PDI-12188] - Moving allocation of arrays to before their use
Merge pull request #9 from brosander/PDI-12188-allocate

[PDI-12188] - Moving allocation of arrays to before their use