projects
/
postgresql
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cd92d1
)
Remove redundant allocation
author
Peter Eisentraut
<peter_e@gmx.net>
Fri, 5 Oct 2018 15:10:19 +0000
(17:10 +0200)
committer
Peter 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
patch
|
blob
|
history
diff --git
a/contrib/jsonb_plpython/jsonb_plpython.c
b/contrib/jsonb_plpython/jsonb_plpython.c
index d6d6eeb9c153cc5b5fb556ad21df39e5e2d38823..f44d364c97c374e1aa35913c5ca55086114c20ea 100644
(file)
--- 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);
}