forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcc40211
committed
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 consequenceperformance-wise, but still they're a bad precedent that can confusefuture patch authors.Noted by Chapman Flack.1 parent1d4a0ab commitcc40211
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
121 | 121 |
| |
122 | 122 |
| |
123 | 123 |
| |
124 |
| - | |
| 124 | + | |
125 | 125 |
| |
126 | 126 |
| |
127 | 127 |
| |
128 | 128 |
| |
129 | 129 |
| |
130 | 130 |
| |
131 |
| - | |
| 131 | + | |
132 | 132 |
| |
133 | 133 |
| |
134 | 134 |
| |
|
0 commit comments
Comments
(0)