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