mirror of
https://github.com/postgres/postgres.git
synced 2025-06-22 02:52:08 +03: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