Commit b5f03dc7 authored by Peter Eisentraut's avatar Peter Eisentraut

Remove redundant allocation

Author: Nikita Glukhov <n.gluhov@postgrespro.ru>
parent 9cd92d1a
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment