No need for dynamic allocation at this point. DK_LEN is a constant. In general using new/delete is discourages in C++ codebases in favor of using a managed structure (e.g. std::vector).