MAGIC Magic Mailing List
 
 

From: R. Timothy Edwards (tim AT stravinsky DOT jhuapl.edu)
Date: Tue May 14 2002 - 15:36:32 EDT

  • Next message: Conrad H Ziesler: "Re: magic patch"

    Dear Conrad,
       The CDPROCESSED patch looks okay.  However, note that magic does a
    "one-buffered malloc" in which a call to freeMagic (or FREE) frees the
    *previous* alloc buffer, and then sets the buffer to the current free
    request.  This allows one item to be addressed after freeing.  It's
    admittedly a bit quirky, but it makes freeing of linked lists very
    simple.  Personally, I'd like to get rid of it everywhere, but going
    through the code and changing it everywhere will be a royal pain.
    Anyway, it means that your patch to the FREE call effectively does
    nothing.
    					Regards,
    					Tim
    


  •  
     
    Questions? Contact Rajit Manohar
    cornell logo