Skip to content

Commit 4ae7f02

Browse files
committed
Fix thinko in allocation call during MVC list deserialization
Spotted by Coverity.
1 parent 5a90740 commit 4ae7f02

File tree

1 file changed

+1
-1
lines changed
  • src/backend/statistics

1 file changed

+1
-1
lines changed

src/backend/statistics/mcv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ statext_mcv_deserialize(bytea *data)
908908
* original values (it might go away).
909909
*/
910910
datalen = 0; /* space for by-ref data */
911-
map = (Datum **) palloc(ndims * sizeof(Datum **));
911+
map = (Datum **) palloc(ndims * sizeof(Datum *));
912912

913913
for (dim = 0; dim < ndims; dim++)
914914
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy