Add non-const arg to allocate_new

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>