[alt.sys.sun] Freeing memory allocated by rpcgen

karin@lia (Karin Meyer) (03/06/91)

We have a large distributed application which uses RPC for
communication.  We have been working under the incorrect assumption 
that memory allocation/deallocation was dealt with within the RPC library. 
I would now like to recover the memory, and have the following
questions:

	1) Do I just need to use xdr_free on the client side, or 
	   does the server also allocate return structures?  Is 
	   xdr_free the correct routine to invoke in both cases?

	2) Does anyone have a filter which will take rpcgen generated
	   files and convert them so that they free structures after 
	   being used?  Since we have always assumed that this was
	   already happenning, the simplest solution for us would be
	   to alter the stubs so that they automatically free memory.


	Thanks,

		Karin Meyer