You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The iOS library generates a "potential memory leak" warning in the size_t bson_array_from_bytes_len() method. This happens in the else statement of the TYPE_ARRAY case:
case TYPE_ARRAY: {
BsonArray subArray;
ret = bson_array_from_bytes_len(&subArray, current, remainBytes);
if (ret > 0) {
bson_array_add_array(&array, &subArray);
current += ret;
remainBytes -= ret;
} else {
parseError = true; // <- Potential memory leak warning generated by Xcode
}
break;
}
The iOS library generates a "potential memory leak" warning in the
size_t bson_array_from_bytes_len()
method. This happens in theelse
statement of theTYPE_ARRAY
case:Step 1:
Steps 2 & 11:
Steps 3, 4, 12, & 13:
Steps 5 & 14:
Steps 6 & 15:
Steps 7, 8, 20, & 21:
Step 9:
Steps 10 & 22:
Steps 16 & 19:
Steps 17 & 18:
Steps 23 & 24:
OS & Version Information
The full method:
The text was updated successfully, but these errors were encountered: