Junwang Zhao <zhjwpku(at)gmail(dot)com> writes:> result = lappend(result, makeDefElem(pstrdup(s), val, -1));> + pfree(s);
I wonder why it's pstrdup'ing s in the first place.
regards, tom lane