XDR provides a routine that destroys the XDR stream pointed to by the xdrs parameter and frees the private data structures allocated to the stream.
Routine
The use of the XDR stream handle is undefined after it is destroyed.