Update dk_free() calls with a new parameter.