Skip to content
Snippets Groups Projects
Commit 40159d91 authored by Peter Eisentraut's avatar Peter Eisentraut
Browse files

Remove redundant allocation

Author: Nikita Glukhov <n.gluhov@postgrespro.ru>
parent ff347f8a
Branches
Tags
No related merge requests found
...@@ -398,7 +398,6 @@ PLyObject_ToJsonbValue(PyObject *obj, JsonbParseState **jsonb_state, bool is_ele ...@@ -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);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment