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

Commit dfbb092

Browse files
committed
Fix dead code
from commit 85b7efa per Coverity report
1 parent ccc8194 commit dfbb092

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/backend/utils/adt/like_match.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,13 +333,14 @@ MatchText(const char *t, int tlen, const char *p, int plen, pg_locale_t locale)
333333
* fails. Otherwise, try again with a longer substring.
334334
*/
335335
if (t1len == 0)
336+
{
337+
if (buf)
338+
pfree(buf);
336339
return LIKE_FALSE;
340+
}
337341
else
338342
NextChar(t1, t1len);
339343
}
340-
if (buf)
341-
pfree(buf);
342-
continue;
343344
}
344345
else if (GETCHAR(*p, locale) != GETCHAR(*t, locale))
345346
{

0 commit comments

Comments
 (0)