This sets a memory pointer to NULL after releasing its memory to avoid a duplicate xfree call. Bug introduced in commit 07ae3e72