VirtualBox

Changeset 28910 in vbox


Ignore:
Timestamp:
Apr 29, 2010 4:40:16 PM (15 years ago)
Author:
vboxsync
Message:

IPRT: Fixed mixed up free calls.

Location:
trunk/src/VBox/Runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/pathhost-generic.cpp

    r28908 r28910  
    185185    {
    186186        if (g_fPassthruUtf8 || !*pszPath)
    187             *ppszNativePath = RTStrDup(pszPath);
     187            *ppszNativePath = (char *)pszPath;
    188188        else
    189189            rc = rtStrConvert(pszPath, strlen(pszPath), "UTF-8",
  • trunk/src/VBox/Runtime/r3/posix/path-posix.cpp

    r28901 r28910  
    849849        else
    850850            rc = VERR_GENERAL_FAILURE;
    851         RTStrFree(pszNativePath);
     851        rtPathFreeNative(pszNativePath);
    852852    }
    853853    return RT_SUCCESS(rc);
     
    900900        if (chdir(pszNativePath))
    901901            rc = RTErrConvertFromErrno(errno);
    902         RTStrFree(pszNativePath);
    903     }
    904     return rc;
    905 }
    906 
     902        rtPathFreeNative(pszNativePath);
     903    }
     904    return rc;
     905}
     906
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