pgsql: Remove useless pstrdup() calls.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Remove useless pstrdup() calls.
Дата
Msg-id E1vBfMJ-0030Ao-1q@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/716c451128a141acbae1ccab6946c716021a977f

Modified Files
--------------
src/pl/plpython/plpy_elog.c       | 2 +-
src/pl/plpython/plpy_plpymodule.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)


В списке pgsql-committers по дате отправления: