dlm: Use kcalloc() in two functions