Remove useless pstrdup() calls.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 716c451128a141acbae1ccab6946c716021a977f
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2025-10-22T20:22:52Z
Remove useless pstrdup() calls.

The result of PLyUnicode_AsString is already palloc'd,
so pstrdup'ing it is just a waste of time and memory.
More importantly it might confuse people about whether
that's necessary.  Doesn't seem important enough to
back-patch, but we should fix it.  Spotted by Coverity.

Files

PathChange+/−
src/pl/plpython/plpy_elog.c modified +1 −1
src/pl/plpython/plpy_plpymodule.c modified +2 −2