]> granicus.if.org Git - postgresql/commitdiff
Remove redundant allocation
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 5 Oct 2018 15:10:19 +0000 (17:10 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 5 Oct 2018 15:10:58 +0000 (17:10 +0200)
Author: Nikita Glukhov <n.gluhov@postgrespro.ru>

contrib/jsonb_plpython/jsonb_plpython.c

index d6d6eeb9c153cc5b5fb556ad21df39e5e2d38823..f44d364c97c374e1aa35913c5ca55086114c20ea 100644 (file)
@@ -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);
        }