[2252] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

Re: Memory allocation/freeing

daemon@ATHENA.MIT.EDU (Richard Basch)
Thu Feb 20 02:08:58 1997

Date: Thu, 20 Feb 1997 02:04:57 -0500
To: Ezra Peisach <epeisach@MIT.EDU>
Cc: "Richard Basch" <basch@lehman.com>, krbdev@MIT.EDU
In-Reply-To: <9702200358.AA29207@kangaroo.mit.edu>
From: "Richard Basch" <basch@lehman.com>

On Wed, 19-February-1997, "Ezra Peisach" wrote to "Richard Basch, krbdev@MIT.EDU, epeisach@MIT.EDU" saying:

> How about krb5_get_default_realm..... Or can we let people free a char * themselves....

Unfortunately, we cannot let them free a (char *) themselves... Unlike
Unix, Windows has a segmented memory structure, and the DLL has a
separate address space.  The DLL should free whatever it allocates, and
the application should do likewise.  This segmented memory architecture
has driven many of the recent changes that I have checked into the tree.

-- 
Richard Basch                   
Sr. Developer/Analyst, DSO      URL: http://web.mit.edu/basch/www/home.html
Lehman Brothers, Inc.           Email: basch@lehman.com, basch@mit.edu
101 Hudson St., 38th Floor      Fax:   +1-201-524-5828
Jersey City, NJ 07302-3988      Voice: +1-201-524-5049


home help back first fref pref prev next nref lref last post