- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit5201bba
Etsuro Fujita
Fix memory allocation/copy mistakes.
The previous code was allocating more memory and copying more data thannecessary because it specified the wrong PgStat_KindInfo member as thesize argument for MemoryContextAlloc and memcpy, respectively.Although these issues exist since5891c7a, there have been no reportsfrom the field. So for now, it seems sufficient to fix them in master.Author: Etsuro Fujita <etsuro.fujita@gmail.com>Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>Reviewed-by: Gurjeet Singh <gurjeet@singh.im>Discussion:https://postgr.es/m/CAPmGK15eTRCZTnfgQ4EuBNo%3DQLYGFEbXS_7m2dXqtkcT7L8qrQ%40mail.gmail.com1 parent6e91b9c commit5201bba
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1187 | 1187 | | |
1188 | 1188 | | |
1189 | 1189 | | |
1190 | | - | |
| 1190 | + | |
1191 | 1191 | | |
1192 | 1192 | | |
1193 | 1193 | | |
| |||
1196 | 1196 | | |
1197 | 1197 | | |
1198 | 1198 | | |
1199 | | - | |
| 1199 | + | |
1200 | 1200 | | |
1201 | 1201 | | |
1202 | 1202 | | |
| |||
0 commit comments
Comments
(0)