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

Reverse out pfree agg part of patch from Erik Riedel.

This commit is contained in:
Bruce Momjian
1999-03-20 13:18:20 +00:00
parent 3ea6c806eb
commit 0aa2aed5f8
3 changed files with 9444 additions and 9184 deletions

View File

@ -110,7 +110,6 @@ ExecAgg(Agg *node)
isNull2 = FALSE;
bool qual_result;
Datum oldVal = (Datum) NULL; /* XXX - so that we can save and free on each iteration - er1p */
/* ---------------------
* get state info from node
@ -373,10 +372,8 @@ ExecAgg(Agg *node)
*/
args[0] = value1[aggno];
args[1] = newVal;
oldVal = value1[aggno]; /* XXX - save so we can free later - er1p */
value1[aggno] = (Datum) fmgr_c(&aggfns->xfn1,
(FmgrValues *) args, &isNull1);
pfree(oldVal); /* XXX - new, let's free the old datum - er1p */
Assert(!isNull1);
}
}