Fix thinko in allocation call during MVC list deserialization

Spotted by Coverity.
pull/40/head
Michael Paquier 7 years ago
parent 5a907404b5
commit 4ae7f02b03
  1. 2
      src/backend/statistics/mcv.c

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

Loading…
Cancel
Save