diff options
| author | Teodor Sigaev | 2006-04-03 08:37:41 +0000 |
|---|---|---|
| committer | Teodor Sigaev | 2006-04-03 08:37:41 +0000 |
| commit | f6c5cbd0d58047513f3781bedd035b92db2a6610 (patch) | |
| tree | 0b76c065ed7239a74b3f57dc1e3037c8862014ef /contrib/intarray/_int_gist.c | |
| parent | 67941b960ff26fad03afd5227025dcf89a0b895c (diff) | |
Minor cleanups
Diffstat (limited to 'contrib/intarray/_int_gist.c')
| -rw-r--r-- | contrib/intarray/_int_gist.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/intarray/_int_gist.c b/contrib/intarray/_int_gist.c index e8cf24fe47..e2f1225d2c 100644 --- a/contrib/intarray/_int_gist.c +++ b/contrib/intarray/_int_gist.c @@ -47,8 +47,10 @@ g_int_consistent(PG_FUNCTION_ARGS) /* sort query for fast search, key is already sorted */ CHECKARRVALID(query); - if (ARRISVOID(query)) + if (ARRISVOID(query)) { + pfree( query ); PG_RETURN_BOOL(false); + } PREPAREARR(query); switch (strategy) |
