Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9b3d932

Browse files
committed
Free ascii representations of compared values!
1 parent a2c476b commit 9b3d932

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/backend/executor/nodeGroup.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* columns. (ie. tuples from the same group are consecutive)
1414
*
1515
* IDENTIFICATION
16-
* $Header: /cvsroot/pgsql/src/backend/executor/nodeGroup.c,v 1.10 1997/09/12 04:07:43 momjian Exp $
16+
* $Header: /cvsroot/pgsql/src/backend/executor/nodeGroup.c,v 1.11 1997/10/27 12:00:43 vadim Exp $
1717
*
1818
*-------------------------------------------------------------------------
1919
*/
@@ -428,7 +428,13 @@ sameGroup(TupleTableSlot *oldslot,
428428
* strcmp for comparison
429429
*/
430430
if (strcmp(val1, val2) != 0)
431+
{
432+
pfree (val1);
433+
pfree (val2);
431434
return FALSE;
435+
}
436+
pfree (val1);
437+
pfree (val2);
432438
}
433439
else
434440
{

0 commit comments

Comments
 (0)