projects
/
gevel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix memory leak
[gevel.git]
/
gevel.c
diff --git
a/gevel.c
b/gevel.c
index
6018003
..
ab08a9a
100644
(file)
--- 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++;
}