xdr-free-20090401
authorJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 1 Apr 2009 17:37:50 +0000 (17:37 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 1 Apr 2009 17:37:50 +0000 (17:37 +0000)
commitd7749751df230d919188546106b61bd2dbb8974c
tree8da6bde3ae0a904839b34eac315fc3c285dfe00a
parent3d81394f9106b187c28e35328676e11b662025c6
xdr-free-20090401

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.
src/libafsrpc/afsrpc.def
src/rx/xdr.c
src/rx/xdr_prototypes.h