Fix thinko in allocation call during MVC list deserialization

Spotted by Coverity.
This commit is contained in:
Michael Paquier 2019-04-01 14:16:27 +09:00
parent 5a907404b5
commit 4ae7f02b03
1 changed files with 1 additions and 1 deletions

View File

@ -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++)
{