Changeset 778 for trunk/dll/dirsize.c


Ignore:
Timestamp:
Aug 11, 2007, 11:45:44 PM (18 years ago)
Author:
Gregg Young
Message:

Free the memory on error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/dirsize.c

    r777 r778  
    259259      y++;
    260260      pffb = xrealloc(pffb, y * (nm + 1) * sizeof(FILEFINDBUF4), pszSrcFile, __LINE__);
    261       if (!pffb)
     261      if (!pffb) //Error already sent {
     262        free(pffb)
    262263        break;
     264    }
    263265     DosError(FERR_DISABLEHARDERR);
    264266      rc = DosFindNext(hdir, pffb, y * (nm + 1) * sizeof(FILEFINDBUF4), &nm);
Note: See TracChangeset for help on using the changeset viewer.