Skip to content

Commit caaf989

Browse files
we need to end copiedArgs
we need to end copiedArgs. In fact, why do we need copyargs?
1 parent 9991f6a commit caaf989

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CoreFoundation/String.subproj/CFString.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7004,7 +7004,8 @@ static Boolean __CFStringAppendFormatCore(CFMutableStringRef outputString, CFStr
70047004
newMaxArgNum = specs[curSpec].widthArgNum;
70057005
}
70067006
if (sizeArgNum < newMaxArgNum) {
7007-
if (specs != localSpecsBuffer) CFAllocatorDeallocate(tmpAlloc, specs);
7007+
if (numConfigs > 0) va_end(copiedArgs);
7008+
if (specs != localSpecsBuffer) CFAllocatorDeallocate(tmpAlloc, specs);
70087009
if (values != localValuesBuffer) CFAllocatorDeallocate(tmpAlloc, values);
70097010
if (formatChars && (formatChars != localFormatBuffer)) CFAllocatorDeallocate(tmpAlloc, formatChars);
70107011

0 commit comments

Comments
 (0)