-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Two memory leaks in function text_layout_raqm due to new reference is not decreased (static analyzer reports) #6321
Copy link
Copy link
Closed
Labels
Description
-
A new reference is returned and assigned to
seq.
Line 301 in 68e39cb
PyObject *seq = PySequence_Fast(features, "expected a sequence"); -
seqis only passed to APIs that do not steal a reference from the argument before it goes out of scope.
Line 306 in 68e39cb
len = PySequence_Size(seq);
Line 308 in 68e39cb
PyObject *item = PySequence_Fast_GET_ITEM(seq, j);
Internal Report ID: 3d6af5
-
A new reference is returned and assigned to
bytes.
Line 319 in 68e39cb
bytes = PyUnicode_AsUTF8String(item); -
bytesis only passed to APIs that do not steal a reference from the argument before it goes out of scope.
Line 323 in 68e39cb
feature = PyBytes_AS_STRING(bytes);
Line 324 in 68e39cb
size = PyBytes_GET_SIZE(bytes);
Internal Report ID: 54b828
Reactions are currently unavailable