VirtualBox

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


Ignore:
Timestamp:
Feb 16, 2024 10:10:54 AM (12 months ago)
Author:
vboxsync
Message:

IPRT/getopt: Documented parfait false positives. bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/getoptargv.cpp

    r99124 r103398  
    443443        papszArgs = (char **)RTMemAlloc(1 * sizeof(char *));
    444444        if (!papszArgs)
    445             return VERR_NO_MEMORY;
     445            return VERR_NO_MEMORY; /* (parfait is wrong about leak here (of other papszArgs alloc)) */
    446446    }
    447447    papszArgs[iArg] = NULL;
     
    449449    *pcArgs     = iArg;
    450450    *ppapszArgv = papszArgs;
    451     return VINF_SUCCESS;
     451    return VINF_SUCCESS; /* (parfait is wrong about any pszDup & papszArgv leaks here, they are intentional) */
    452452}
    453453
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