Remove redundant allocation
Author: Nikita Glukhov <n.gluhov@postgrespro.ru>
This commit is contained in:
parent
ff347f8aff
commit
40159d91cc
@ -398,7 +398,6 @@ PLyObject_ToJsonbValue(PyObject *obj, JsonbParseState **jsonb_state, bool is_ele
|
|||||||
*/
|
*/
|
||||||
else if (PyBool_Check(obj))
|
else if (PyBool_Check(obj))
|
||||||
{
|
{
|
||||||
out = palloc(sizeof(JsonbValue));
|
|
||||||
out->type = jbvBool;
|
out->type = jbvBool;
|
||||||
out->val.boolean = (obj == Py_True);
|
out->val.boolean = (obj == Py_True);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user