diff options
author | Vadim B. Mikheev <vadim4o@yahoo.com> | 1998-02-18 12:40:44 +0000 |
---|---|---|
committer | Vadim B. Mikheev <vadim4o@yahoo.com> | 1998-02-18 12:40:44 +0000 |
commit | b1b246ab40faaba0cea515b2254bb12aa672417a (patch) | |
tree | f046a63062c3af93a8e4decf6ef3c5a2715355c2 /src/backend/executor/nodeUnique.c | |
parent | 3d18ca70a7c508d901dca0102f425267c4987b87 (diff) | |
download | postgresql-b1b246ab40faaba0cea515b2254bb12aa672417a.tar.gz postgresql-b1b246ab40faaba0cea515b2254bb12aa672417a.zip |
New nodeGroup.c code uses own copy of first tuple in a group.
Free memory after comparison in nodeUnique.c
Diffstat (limited to 'src/backend/executor/nodeUnique.c')
-rw-r--r-- | src/backend/executor/nodeUnique.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/backend/executor/nodeUnique.c b/src/backend/executor/nodeUnique.c index abdf44bc890..ddeae78904d 100644 --- a/src/backend/executor/nodeUnique.c +++ b/src/backend/executor/nodeUnique.c @@ -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 */ |