Changeset 1113 for trunk/dll/filldir.c


Ignore:
Timestamp:
Aug 24, 2008, 5:24:19 AM (17 years ago)
Author:
Gregg Young
Message:

Use pszDisplayName for display in dirsize.c change free code to free it; fix memory leak in dirsize. (Ticket 269)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/filldir.c

    r1104 r1113  
    16411641  }
    16421642
     1643  if (pci->pszDisplayName &&
     1644      pci->pszDisplayName != NullStr &&
     1645      pci->pszDisplayName != pci->pszFileName &&
     1646      pci->pszDisplayName != strrchr(pci->pszFileName, '\\') &&
     1647      pci->pszDisplayName != strrchr(pci->pszFileName, '\\') + 1) {
     1648    psz = pci->pszDisplayName;
     1649    pci->pszDisplayName = NULL;         // for debug
     1650    free(psz);
     1651}
     1652
    16431653  if (pci->pszFileName && pci->pszFileName != NullStr) {
    16441654    psz = pci->pszFileName;
Note: See TracChangeset for help on using the changeset viewer.