add function anti core dump writer, and use NULL after to use "free()" function to mitigation around dangling pointers...