VirtualBox

Changeset 5702 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Nov 12, 2007 11:29:04 AM (17 years ago)
Author:
vboxsync
Message:

Free a previously allocated memory.

Location:
trunk/src/VBox/Runtime/r3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/path-posix.cpp

    r4636 r5702  
    662662        else
    663663            rc = RTErrConvertFromErrno(errno);
     664        rtPathFreeNative(pszNativePath);
    664665    }
    665666
     
    739740            }
    740741        }
     742        rtPathFreeNative(pszNativePath);
    741743    }
    742744
  • trunk/src/VBox/Runtime/r3/win/fs-win.cpp

    r5428 r5702  
    389389             pszFsPath, Err, rc));
    390390    }
     391
     392#ifndef RT_DONT_CONVERT_FILENAMES
     393    RTStrUcs2Free(puszFsRoot);
     394#else
     395    RTStrUcs2Free(pszFsRoot);
     396#endif
     397
    391398    return rc;
    392399}
  • trunk/src/VBox/Runtime/r3/win/path-win.cpp

    r5428 r5702  
    224224        return rc;
    225225    }
     226    RTStrUcs2Free(puszPath);
    226227#else
    227228    if (!GetFileAttributesExA(pszPath, GetFileExInfoStandard, &Data))
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette