mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-14 10:27:04 +08:00
Fix thinko in allocation call during MVC list deserialization
Spotted by Coverity.
This commit is contained in:
@ -908,7 +908,7 @@ statext_mcv_deserialize(bytea *data)
|
||||
* original values (it might go away).
|
||||
*/
|
||||
datalen = 0; /* space for by-ref data */
|
||||
map = (Datum **) palloc(ndims * sizeof(Datum **));
|
||||
map = (Datum **) palloc(ndims * sizeof(Datum *));
|
||||
|
||||
for (dim = 0; dim < ndims; dim++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user