Test for NULL array pointers before trying to free the array elements. We are not seeing problems with this, but just hardening the code.