Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 40159d9

Browse files
committed
Remove redundant allocation
Author: Nikita Glukhov <n.gluhov@postgrespro.ru>
1 parent ff347f8 commit 40159d9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

contrib/jsonb_plpython/jsonb_plpython.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,6 @@ PLyObject_ToJsonbValue(PyObject *obj, JsonbParseState **jsonb_state, bool is_ele
398398
*/
399399
else if (PyBool_Check(obj))
400400
{
401-
out = palloc(sizeof(JsonbValue));
402401
out->type = jbvBool;
403402
out->val.boolean = (obj == Py_True);
404403
}

0 commit comments

Comments
 (0)