diff options
author | Michael Paquier <michael@paquier.xyz> | 2019-04-01 14:16:27 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2019-04-01 14:16:27 +0900 |
commit | 4ae7f02b0364ccba49a82efbfff46125fb357d6c (patch) | |
tree | c6d1ddb5c161459e5a3ec1065948259dc2789d07 | |
parent | 5a907404b52753c4d6c6a7c21765aeaa42fd6a3b (diff) | |
download | postgresql-4ae7f02b0364ccba49a82efbfff46125fb357d6c.tar.gz postgresql-4ae7f02b0364ccba49a82efbfff46125fb357d6c.zip |
Fix thinko in allocation call during MVC list deserialization
Spotted by Coverity.
-rw-r--r-- | src/backend/statistics/mcv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/statistics/mcv.c b/src/backend/statistics/mcv.c index 90e639ba0a3..d1af5d84d00 100644 --- a/src/backend/statistics/mcv.c +++ b/src/backend/statistics/mcv.c @@ -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++) { |