From 88d18da375773f168d0bf98f94cd86978c921908 Mon Sep 17 00:00:00 2001 From: teodor Date: Tue, 1 Apr 2008 17:30:09 +0000 Subject: [PATCH] Fix memory leak --- gevel.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gevel.c b/gevel.c index 6018003..ab08a9a 100644 --- a/gevel.c +++ b/gevel.c @@ -561,8 +561,12 @@ refindPosition(GinStatState *st) st->curval, datum )); - if ( cmp == 0 ) + if ( cmp == 0 ) + { + if ( !st->ginstate.tupdesc->attrs[0]->attbyval ) + pfree( st->curval ); return true; + } st->offset++; } -- 2.46.1