mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-18 01:50:32 +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 */
|
* array[array[]] is */
|
||||||
all_nulls = 0;
|
all_nulls = 0;
|
||||||
Py_CLEAR(qs[i]);
|
Py_CLEAR(qs[i]);
|
||||||
qs[i] = Bytes_FromString("ARRAY[]");
|
if (!(qs[i] = Bytes_FromString("ARRAY[]"))) {
|
||||||
|
goto exit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user