mirror of
https://github.com/postgres/postgres.git
synced 2025-05-06 19:59:18 +03:00
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…
x
Reference in New Issue
Block a user