Remove useless pstrdup() calls.
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| src/pl/plpython/plpy_elog.c | modified | +1 −1 |
| src/pl/plpython/plpy_plpymodule.c | modified | +2 −2 |