transport: set pointers to NULL after free