From 40159d91cc546b2585efd3eb0b3db05cd6f2be93 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 5 Oct 2018 17:10:19 +0200 Subject: [PATCH] Remove redundant allocation Author: Nikita Glukhov --- contrib/jsonb_plpython/jsonb_plpython.c | 1 - 1 file changed, 1 deletion(-) diff --git a/contrib/jsonb_plpython/jsonb_plpython.c b/contrib/jsonb_plpython/jsonb_plpython.c index d6d6eeb9c1..f44d364c97 100644 --- a/contrib/jsonb_plpython/jsonb_plpython.c +++ b/contrib/jsonb_plpython/jsonb_plpython.c @@ -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); } -- 2.40.0