LICENSE MIT
add xdr_free() and export it from afsrpc.dll. This permits applications
to free memory allocated within the xdr routines with the same run time
library memory management routines as was used to allocate it.
This is necessary on Windows to prevent memory corruption.
VL_GetAddrsU() is an example where a xdr array is allocated in the
library and must be freed by the application.
rx_WritevAlloc @249
rx_ReadProc32 @250
rx_WriteProc32 @251
+ xdr_free @252
; for performance testing
rx_TSFPQGlobSize @2001 DATA
return (FALSE);
}
#endif
+
+void
+xdr_free(void *x, afs_int32 size)
+{
+ osi_free(x, size);
+}
#endif /* NeXT */
struct xdr_discrim *choices, xdrproc_t dfault);
extern bool_t xdr_string(XDR * xdrs, char **cpp, u_int maxsize);
extern bool_t xdr_wrapstring(XDR * xdrs, char **cpp);
+extern void xdr_free(void *x, afs_int32 size);
/* xdr_float.c */