diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2018-10-05 17:10:19 +0200 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2018-10-05 17:26:58 +0200 |
commit | 40159d91cc546b2585efd3eb0b3db05cd6f2be93 (patch) | |
tree | 567e461f26f8c3363b8dea3bf3f9bef7779ba5d2 /contrib/jsonb_plpython/jsonb_plpython.c | |
parent | ff347f8aff04865680c19ffc818460bb2afaad5b (diff) | |
download | postgresql-40159d91cc546b2585efd3eb0b3db05cd6f2be93.tar.gz postgresql-40159d91cc546b2585efd3eb0b3db05cd6f2be93.zip |
Remove redundant allocation
Author: Nikita Glukhov <n.gluhov@postgrespro.ru>
Diffstat (limited to 'contrib/jsonb_plpython/jsonb_plpython.c')
-rw-r--r-- | contrib/jsonb_plpython/jsonb_plpython.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/contrib/jsonb_plpython/jsonb_plpython.c b/contrib/jsonb_plpython/jsonb_plpython.c index d6d6eeb9c15..f44d364c97c 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); } |