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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy