]> git.michaelhowe.org Git - packages/o/openafs.git/commit
DEVEL15-xdr-free-20090401
authorJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 1 Apr 2009 17:38:13 +0000 (17:38 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 1 Apr 2009 17:38:13 +0000 (17:38 +0000)
commita4aab1e3a4bcae651c91ddf66576e6d5a23a974c
treef1b851de1b6494fae792f78a08c9bcc64fc7ee9d
parentda94bd9e0fe5e122f1bc10fc06634ce14f5c9de5
DEVEL15-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.

(cherry picked from commit d7749751df230d919188546106b61bd2dbb8974c)
src/libafsrpc/afsrpc.def
src/rx/xdr.c
src/rx/xdr_prototypes.h