Changeset 959 for trunk/dll/misc.c


Ignore:
Timestamp:
Feb 18, 2008, 1:47:31 AM (17 years ago)
Author:
Gregg Young
Message:

Use xfree where appropriate. Check that buffer exists following all xmallocs. Stopped at eas.c with xfree checking. One remaining xmalloc without test in dirsize.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/misc.c

    r945 r959  
    734734              pci->pszSubject = xrealloc(pci->pszSubject, retlen + 1, pszSrcFile, __LINE__);
    735735          }
    736           else
     736          else {
    737737            pci->pszSubject = xmalloc(retlen + 1, pszSrcFile, __LINE__);
     738            if (!pci->pszSubject)
     739              return FALSE;
     740          }
    738741          len = strlen(szSubject);
    739742          if (len)
Note: See TracChangeset for help on using the changeset viewer.