1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-30 21:42:05 +03:00

Change some mallocs to palloc.

This commit is contained in:
Bruce Momjian
1997-12-29 05:13:57 +00:00
parent a1dd409053
commit a544b605e2
5 changed files with 12 additions and 15 deletions

View File

@ -266,11 +266,11 @@ ExecAgg(Agg *node)
tupValue = projInfo->pi_tupValue;
/* initially, set all the values to NULL */
null_array = malloc(tupType->natts);
null_array = palloc(tupType->natts);
for (i = 0; i < tupType->natts; i++)
null_array[i] = 'n';
oneTuple = heap_formtuple(tupType, tupValue, null_array);
free(null_array);
pfree(null_array);
}
break;
}