Skip to content

Commit 52260fa

Browse files
committed
[PGPRO-6644] Corrected memory allocation using double pointer
1 parent eec4e1d commit 52260fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ qualified_relnames_to_rangevars(char **relnames, size_t nrelnames)
515515
/* Convert partition names into RangeVars */
516516
if (relnames)
517517
{
518-
rangevars = palloc(sizeof(RangeVar) * nrelnames);
518+
rangevars = palloc(sizeof(RangeVar *) * nrelnames);
519519
for (i = 0; i < nrelnames; i++)
520520
{
521521
List *nl = stringToQualifiedNameList(relnames[i]);

0 commit comments

Comments
 (0)