Remove a couple of useless pstrdup() calls.

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

Commit: cc402116ca156babcd3ef941317f462a96277e3a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2016-03-10T04:29:05Z
Releases: 9.6.0
Remove a couple of useless pstrdup() calls.

There's no point in pstrdup'ing the result of TextDatumGetCString,
since that's necessarily already a freshly-palloc'd C string.

These particular calls are unlikely to be of any consequence
performance-wise, but still they're a bad precedent that can confuse
future patch authors.

Noted by Chapman Flack.

Files

PathChange+/−
src/backend/foreign/foreign.c modified +2 −2