postgresql/src/backend
Tom Lane d9c0c728af Fix low-probability memory leak in regex execution.
After an internal failure in shortest() or longest() while pinning down the
exact location of a match, find() forgot to free the DFA structure before
returning.  This is pretty unlikely to occur, since we just successfully
ran the "search" variant of the DFA; but it could happen, and it would
result in a session-lifespan memory leak since this code uses malloc()
directly.  Problem seems to have been aboriginal in Spencer's library,
so back-patch all the way.

In passing, correct a thinko in a comment I added awhile back about the
meaning of the "ntree" field.

I happened across these issues while comparing our code to Tcl's version
of the library.
2015-09-18 13:55:17 -04:00
..
access Fix bug introduced by microvacuum for GiST 2015-09-17 14:22:37 +03:00
bootstrap pgindent run for 9.5 2015-05-23 21:35:49 -04:00
catalog Determine whether it's safe to attempt a parallel plan for a query. 2015-09-16 15:38:47 -04:00
commands Add new function planstate_tree_walker. 2015-09-17 11:27:06 -04:00
executor Determine whether it's safe to attempt a parallel plan for a query. 2015-09-16 15:38:47 -04:00
foreign Code review for foreign/custom join pushdown patch. 2015-05-10 14:36:36 -04:00
lib Avoid use of float arithmetic in bipartite_match.c. 2015-08-23 13:02:18 -04:00
libpq Support RADIUS passwords up to 128 characters 2015-09-06 14:31:53 +02:00
main Revoke support for strxfrm() that write past the specified array length. 2015-07-08 20:44:21 -04:00
nodes Add new function planstate_tree_walker. 2015-09-17 11:27:06 -04:00
optimizer Determine whether it's safe to attempt a parallel plan for a query. 2015-09-16 15:38:47 -04:00
parser Determine whether it's safe to attempt a parallel plan for a query. 2015-09-16 15:38:47 -04:00
po Translation updates 2015-06-28 23:56:55 -04:00
port Rely on inline functions even if that causes warnings in older compilers. 2015-08-05 18:19:52 +02:00
postmaster Remove files signaling a standby promotion request at postmaster startup 2015-09-09 22:51:44 +09:00
regex Fix low-probability memory leak in regex execution. 2015-09-18 13:55:17 -04:00
replication Add ability to reserve WAL upon slot creation via replication protocol. 2015-09-06 13:30:57 +02:00
rewrite Enforce ALL/SELECT policies in RETURNING for RLS 2015-09-15 15:49:31 -04:00
snowball Remove no-longer-required function declarations. 2015-05-24 12:20:23 -04:00
storage Fix build problems in commit aa65de042f. 2015-09-11 14:56:17 -04:00
tcop Determine whether it's safe to attempt a parallel plan for a query. 2015-09-16 15:38:47 -04:00
tsearch pgindent run for 9.5 2015-05-23 21:35:49 -04:00
utils Add header forgotten in 213335c145 2015-09-18 14:32:09 +03:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
Makefile Fix build problems in commit aa65de042f. 2015-09-11 14:56:17 -04:00
nls.mk Translation updates 2015-02-01 23:23:40 -05:00