mirror of https://github.com/postgres/postgres
Fix thinko in allocation call during MVC list deserialization
Spotted by Coverity.
This commit is contained in:
parent
5a907404b5
commit
4ae7f02b03
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue