1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-03 20:02:46 +03:00

New nodeGroup.c code uses own copy of first tuple in a group.

Free memory after comparison in nodeUnique.c
This commit is contained in:
Vadim B. Mikheev
1998-02-18 12:40:44 +00:00
parent 3d18ca70a7
commit b1b246ab40
2 changed files with 66 additions and 88 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/nodeUnique.c,v 1.14 1998/02/10 16:03:03 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/nodeUnique.c,v 1.15 1998/02/18 12:40:44 vadim Exp $
*
*-------------------------------------------------------------------------
*/
@ -208,9 +208,14 @@ ExecUnique(Unique *node)
* use strcmp for comparison
*/
if (strcmp(val1, val2) == 0) /* they are equal */
{
pfree (val1);
pfree (val2);
continue;
else
break;
}
pfree (val1);
pfree (val2);
break;
}
else
/* one is null and the other isn't, they aren't equal */