Revert "switching some long winded stuff in NoPLc to use realloc"

This reverts commit eb6fe4d8756c0ac0c6adc8162a4bcf3ea124128e.