cvs commit: fptools/libraries/base/Foreign/Marshal Alloc.hs

Simon Marlow simonmar@glass.cse.ogi.edu
Thu, 19 Jun 2003 06:20:38 -0700


simonmar    2003/06/19 06:20:37 PDT

  Modified files:
    libraries/base/Foreign/Marshal Alloc.hs 
  Log:
  Fix reallocBytes: when size is zero, it is supposed to act like free.
  Which it did, except that we were complaining about the NULL return
  value from C's realloc and reporting it as an error.
  
  MERGE TO STABLE
  
  Revision  Changes    Path
  1.23      +2 -0      fptools/libraries/base/Foreign/Marshal/Alloc.hs