Defined the cpr_*_alloc() and cpr_*_free() functions.