mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-25 02:13:44 +03:00
Handle failed allocation in list adaptation
This commit is contained in:
parent
7a3bce8fc3
commit
e67028f4bc
|
@ -90,7 +90,9 @@ list_quote(listObject *self)
|
|||
* array[array[]] is */
|
||||
all_nulls = 0;
|
||||
Py_CLEAR(qs[i]);
|
||||
qs[i] = Bytes_FromString("ARRAY[]");
|
||||
if (!(qs[i] = Bytes_FromString("ARRAY[]"))) {
|
||||
goto exit;
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user