Set authreg_private to NULL after calling free()