OpenAFS CVS Commit: openafs/src/WINNT/client_creds by shadow

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Mon, 15 Sep 2003 17:02:26 EDT


Update of /data/cvs/openafs/src/WINNT/client_creds
In directory GRAND.CENTRAL.ORG:/data/sb/openafs/src/WINNT/client_creds

Modified Files:
	afscreds.h 
Log Message:
DELTA winnt-avoid-leak-and-memory-corruption-in-afscreds-20030915
AUTHOR jaltman@columbia.edu
FIXES 2120

WINNT/talocale/TaLocale.h conditionally defines REALLOC() to
TaLocaleReallocFunction().

WINNT/client_creds/afscred.h  conditionally defines REALLOC() to
AfsCredsReallocFunction().

Unfortunately, AfsCredsReallocFunction is never used because REALLOC is
always defined first by an include of Talocale.h within afscreds.h. 
This is a problem because it results in memory being allocated within a
DLL and then freed by the EXE.  This results in both a memory leak in
the DLL and memory corruption in the EXE.


--- DELTA config follows ---
winnt-avoid-leak-and-memory-corruption-in-afscreds-20030915 openafs/src/WINNT/client_creds/afscreds.h 1.2 1.3