Commit 4ae7f02b authored by Michael Paquier's avatar Michael Paquier

Fix thinko in allocation call during MVC list deserialization

Spotted by Coverity.
parent 5a907404
...@@ -908,7 +908,7 @@ statext_mcv_deserialize(bytea *data) ...@@ -908,7 +908,7 @@ statext_mcv_deserialize(bytea *data)
* original values (it might go away). * original values (it might go away).
*/ */
datalen = 0; /* space for by-ref data */ 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++) for (dim = 0; dim < ndims; dim++)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment